Method for establishing communication connection, device, communication system, and storage medium
By generating and using unique identification codes between communication devices to establish communication connections, the problem of low accuracy and security of communication connections in the prior art is solved, and higher accuracy and security are achieved.
Patent Information
- Application Number
- PCT/CN2024/106166
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-20
- Filing Date
- 2024-07-18
- Publication Date
- 2025-06-26
AI Technical Summary
In the prior art, when establishing a communication connection, since the special fields sent by the first communication device are fixed, it may cause the first communication device to establish a communication connection with other communication devices rather than the targeted second communication device, reducing the accuracy and security of establishing a communication connection.
By generating a unique identification code and sending it to the first communication device and the second communication device respectively, it is instructed to establish a communication connection according to the unique identification code. Optionally, the unique identification code is encrypted by a key, and the encrypted unique identification code and key are transmitted between devices to further improve security.
By using a unique identification code, it is ensured that only the first communication device and the second communication device are established, incorrect connections with other communication devices that do not have the unique identification code are avoided, and the accuracy and security of establishing the communication connection are improved.
Smart Images

Figure CN2024106166_26062025_PF_FP_ABST
Abstract
Description
A method, device, communication system and storage medium for establishing a communication connection
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 20, 2023, with application number 202311762689.7 and invention name “A method, device, communication system and storage medium for establishing a communication connection”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technologies, and in particular to a method, device, communication system, and storage medium for establishing a communication connection. Background Art
[0003] In existing methods for establishing a communication connection, when a connection needs to be established between a first communication device and a second communication device, the first communication device usually sends a broadcast including a special field. After the second communication device scans the broadcast including the special field, it establishes a communication connection with the first communication device based on the special field.
[0004] However, since the special field sent by the first communication device is fixed, if the special field sent by the first communication device is obtained by other communication devices, it may cause the first communication device to establish a communication connection with other communication devices rather than the target second communication device, thereby reducing the accuracy and security of establishing the communication connection. Technical issues
[0005] In view of this, embodiments of the present application provide a method, device, communication system, and storage medium for establishing a communication connection to solve the technical problem of low accuracy and security in existing communication connection establishment. Technical Solutions
[0006] In a first aspect, an embodiment of the present application provides a method for establishing a communication connection, which is applied to an auxiliary device, and the method includes:
[0007] Generate a unique identification code;
[0008] The unique identification code is sent to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code.
[0009] Optionally, after generating the unique identification code, the method further includes:
[0010] Encrypting the unique identification code using a key to obtain the encrypted unique identification code;
[0011] The sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code includes:
[0012] The encrypted unique identification code and the key are sent to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to decrypt the encrypted unique identification code according to the key and establish a communication connection through the decrypted unique identification code.
[0013] Optionally, sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code includes:
[0014] sending the unique identification code to the first communication device and the second communication device respectively, to instruct the first communication device and the second communication device to locally store the unique identification code and establish a communication connection according to the unique identification code;
[0015] After sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code, the method further includes:
[0016] Generate and store binding relationship information between the first communication device and the second communication device.
[0017] Optionally, after generating and storing the binding relationship information between the first communication device and the second communication device, the method further includes:
[0018] After receiving a device unbinding instruction input by a user, sending a first unbinding instruction to the first communication device to instruct the first communication device to delete the unique identification code stored locally on the first communication device, and instructing the first communication device to send a second unbinding instruction to the second communication device to instruct the second communication device to delete the unique identification code stored locally on the second communication device;
[0019] When confirmation information indicating that the unique identification code has been deleted is received from the first communication device and the second communication device, the binding relationship information between the first communication device and the second communication device is deleted.
[0020] In a second aspect, an embodiment of the present application provides a method for establishing a communication connection, applied to a first communication device, the method comprising:
[0021] When the unique identification code generated and sent by the auxiliary device is received, a communication connection with a second communication device is established according to the unique identification code; wherein the second communication device is a device that also receives the unique identification code sent by the auxiliary device.
[0022] Optionally, after receiving the unique identification code generated and sent by the auxiliary device, the method further includes:
[0023] storing the unique identification code locally in the first communication device;
[0024] After receiving the first unbinding instruction sent by the auxiliary device, the unique identification code stored locally in the first communication device is deleted, and a second unbinding instruction is sent to the second communication device to instruct the second communication device to delete the unique identification code stored locally in the second communication device.
[0025] In a third aspect, an embodiment of the present application provides an auxiliary device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for establishing a communication connection as described in any one of the first aspects is implemented.
[0026] In a fourth aspect, an embodiment of the present application provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for establishing a communication connection as described in any one of the second aspects is implemented.
[0027] In a fifth aspect, an embodiment of the present application provides a communication system, comprising the auxiliary device as described in the third aspect and the communication device as described in the fourth aspect.
[0028] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for establishing a communication connection as described in any one of the first and second aspects above are implemented.
[0029] In a seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes each step of the method for establishing a communication connection as described in any one of the first and second aspects above. Beneficial effects
[0030] The method, device, communication system, and storage medium for establishing a communication connection provided by the embodiments of the present application have the following beneficial effects:
[0031] In the method for establishing a communication connection provided in the present application, a unique identification code is generated and sent to a first communication device and a second communication device, respectively, to instruct the first communication device and the second communication device to establish a communication connection based on the unique identification code. Through the method for establishing a communication connection in the present application, it is possible to establish a communication connection between the first communication device and the second communication device using the unique identification code. Since only the first communication device and the second communication device store the unique identification code, the first communication device and the second communication device will not mistakenly establish a communication connection with other communication devices that do not have the unique identification code, thereby improving the accuracy and security of establishing the communication connection. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. 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 any creative work.
[0033] FIG1 is a flowchart of a method for establishing a communication connection according to an embodiment of the present application;
[0034] FIG2 is a flowchart of another method for establishing a communication connection provided in an embodiment of the present application;
[0035] FIG3 is a flowchart of another method for establishing a communication connection provided in an embodiment of the present application;
[0036] FIG4 is a flowchart of another method for establishing a communication connection provided in an embodiment of the present application;
[0037] FIG5 is a schematic structural diagram of an auxiliary device provided in an embodiment of the present application;
[0038] FIG6 is a schematic structural diagram of a first communication device provided in an embodiment of the present application;
[0039] FIG7 is a schematic structural diagram of an auxiliary device provided in another embodiment of the present application;
[0040] FIG8 is a schematic structural diagram of a communication device provided in another embodiment of the present application. Modes for Carrying Out the Invention
[0041] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one" and "one or more" refer to one, two or more. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features.
[0042] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0043] The method for establishing a communication connection provided in the embodiments of the present application can be applied to an auxiliary device, a first communication device, a second communication device, and a communication system. When the method for establishing a communication connection is applied to an auxiliary device, the execution subject of the method for establishing a communication connection is the auxiliary device; when the method for establishing a communication connection is applied to a first communication device, the execution subject of the method for establishing a communication connection is the first communication device; when the method for establishing a communication connection is applied to a second communication device, the execution subject of the method for establishing a communication connection is the second communication device; when the method for establishing a communication connection is applied to a communication system, the execution subject of the method for establishing a communication connection is the communication system.
[0044] Among them, the auxiliary device can be a terminal device, and for example, the auxiliary device can be a mobile phone; the first communication device can be an electronic device, and for example, the first communication device can be a Bluetooth headset; the second communication device can be an electronic device, and for example, the second communication device can be a peripheral device that needs to be connected to a Bluetooth headset; the communication system can include the auxiliary device, the first communication device and the second communication device, and for example, the communication system can include a mobile phone, a Bluetooth headset and a peripheral device that needs to be connected to a Bluetooth headset.
[0045] Currently, when a Bluetooth headset needs to establish a communication connection with a peripheral device, it usually sends a broadcast including a special field through the Bluetooth headset. After the peripheral device discovers a broadcast including the special field during broadcast scanning, the peripheral device can establish a Bluetooth connection with the Bluetooth headset based on the scanned special field. After that, the peripheral device can communicate with the Bluetooth headset.
[0046] However, since the special fields sent by the Bluetooth headset are set in advance by the manufacturer, when the Bluetooth headset needs to establish a connection with the target peripheral device, the special fields sent by the Bluetooth headset may be obtained by peripheral devices other than the target peripheral device. Therefore, there may be peripheral devices other than the target peripheral device attempting to establish a communication connection with the Bluetooth headset, which ultimately results in the peripheral device not being the target peripheral device establishing a communication connection with the Bluetooth headset, which will reduce the accuracy and security of establishing the communication connection.
[0047] The method for establishing a communication connection provided by the embodiment of the present application can be applied to various scenarios in which a first communication device needs to establish a communication connection with a second communication device. Specifically, the method for establishing a communication connection provided by the embodiment of the present application can be applied to a scenario in which a Bluetooth headset establishes a Bluetooth connection with a peripheral device. When a user wants a first communication device to establish a communication connection with a second communication device, the various steps of the method for establishing a communication connection provided by the embodiment of the present application can be performed through an auxiliary device, a first communication device, a second communication device, and a communication system, thereby ensuring that the first communication device and the second communication device will not mistakenly establish a communication connection with other communication devices that do not have a unique identification code, thereby ultimately improving the accuracy and security of establishing a communication connection.
[0048] The following first provides a method for establishing a communication connection applied to an auxiliary device. Please refer to Figure 1. Figure 1 is a flowchart of an implementation of a method for establishing a communication connection provided in an embodiment of the present application. The method for establishing a communication connection provided in an embodiment of the present application can be applied to an auxiliary device. The method for establishing a communication connection may include S101 to S102, which are detailed as follows:
[0049] In S101 , a unique identification code is generated.
[0050] In the embodiment of the present application, the auxiliary device can randomly generate a unique identification code. The specific method for the auxiliary device to generate a unique identification code can be set according to actual needs, and the specific method for the auxiliary device to generate a unique identification code is not specifically limited here.
[0051] Exemplarily, the auxiliary device may be a mobile phone, that is, the unique identification code may be generated by a preset program on the mobile phone.
[0052] In S102, the unique identification code is sent to the first communication device and the second communication device respectively, so as to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code.
[0053] In an embodiment of the present application, after generating a unique identification code, the auxiliary device can send the unique identification code to the first communication device and the second communication device respectively. Before sending the unique identification code to the first communication device and the second communication device respectively, the auxiliary device needs to establish a communication connection with the first communication device and the second communication device.
[0054] Exemplarily, the first communication device may be a Bluetooth headset, and the second communication device may be a peripheral device. That is, before the mobile phone sends the unique identification code to the Bluetooth headset and the peripheral device respectively, the mobile phone needs to establish a communication connection with the Bluetooth headset and the peripheral device.
[0055] Specifically, Bluetooth headsets and peripheral devices can establish connections with mobile phones through Bluetooth broadcasting.
[0056] After the auxiliary device establishes communication connections with the first communication device and the second communication device, the auxiliary device may send the generated unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish communication connections according to the unique identification code.
[0057] Specifically, after the auxiliary device sends the unique identification code to the first communication device and the second communication device, the auxiliary device generates and stores the binding relationship information between the first communication device and the second communication device. After the first communication device and the second communication device receive the unique identification code, they can both store the unique identification code locally and establish a communication connection based on the unique identification code.
[0058] For example, after the mobile phone establishes a communication connection with the Bluetooth headset and the peripheral device, the mobile phone can send the generated unique identification code to the Bluetooth headset and the peripheral device respectively, and generate and store the binding relationship information between the Bluetooth headset and the peripheral device. After the Bluetooth headset and the peripheral device receive the unique identification code, they can both store the unique identification code locally and establish a communication connection based on the unique identification code.
[0059] The process of establishing a communication connection between the first communication device and the second communication device based on the unique identification code may include: the first communication device sends a broadcast including the unique identification code, and after the second communication device scans the broadcast including the unique identification code, the second communication device establishes a communication connection with the first communication device.
[0060] Exemplarily, the process of establishing a communication connection between a Bluetooth headset and a peripheral device based on a unique identification code may include: the Bluetooth headset sends a broadcast including the unique identification code, and after the peripheral device scans the broadcast including the unique identification code, the peripheral device establishes a communication connection with the Bluetooth headset.
[0061] In an optional implementation, in order to further improve the accuracy and security of establishing a communication connection, after the auxiliary device generates a unique identification code, step a may be further performed, as detailed below:
[0062] In step a, the unique identification code is encrypted using a key to obtain an encrypted unique identification code;
[0063] In this implementation, after the auxiliary device generates the unique identification code, it can encrypt the unique identification code with a key to obtain an encrypted unique identification code. The specific method of encrypting the unique identification code with a key can be set according to actual needs and is not limited here.
[0064] For example, after generating the unique identification code, the mobile phone may encrypt the unique identification code using a key to obtain an encrypted unique identification code.
[0065] Based on this, the step of sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code can be implemented by step b, as detailed below:
[0066] In step b, the encrypted unique identification code and key are sent to the first communication device and the second communication device respectively, to instruct the first communication device and the second communication device to decrypt the encrypted unique identification code according to the key and establish a communication connection through the decrypted unique identification code.
[0067] In this implementation, after obtaining the encrypted unique identification code, the auxiliary device may send the encrypted unique identification code and the key to the first communication device and the second communication device, respectively. After receiving the encrypted unique identification code and the key, the first communication device and the second communication device may decrypt the encrypted unique identification code using the key and establish a communication connection using the decrypted unique identification code.
[0068] For example, after obtaining the encrypted unique identification code, the mobile phone can send the encrypted unique identification code and key to the Bluetooth headset and the peripheral device, respectively. After receiving the encrypted unique identification code and key, the Bluetooth headset and the peripheral device can decrypt the encrypted unique identification code using the key and establish a communication connection using the decrypted unique identification code.
[0069] In a possible implementation, the binding relationship between the first communication device and the second communication device can be released through steps c to d. The details are as follows:
[0070] In step c, after receiving the device unbinding instruction input by the user, a first unbinding instruction is sent to the first communication device to instruct the first communication device to delete the unique identification code stored locally on the first communication device, and the first communication device is instructed to send a second unbinding instruction to the second communication device to instruct the second communication device to delete the unique identification code stored locally on the second communication device.
[0071] In this implementation, when the user needs to release the binding relationship between the first communication device and the second communication device, the user can click the unbinding control on the auxiliary device to input a device unbinding instruction to the auxiliary device.
[0072] Based on this, when the auxiliary device receives the device unbinding instruction input by the user, the auxiliary device can send a first unbinding instruction to the first communication device. After the first communication device receives the first unbinding instruction, the first communication device can delete the unique identification code stored locally on the first communication device. The first communication device can also send a second unbinding instruction to the second communication device. After the second communication device receives the second unbinding instruction, the second communication device can delete the unique identification code stored locally on the second communication device. After both the first communication device and the second communication device delete the stored unique identification code, the purpose of releasing the binding relationship between the first communication device and the second communication device can be achieved.
[0073] After the first communication device deletes the unique identification code stored locally on the first communication device, the first communication device may also return confirmation information that the unique identification code has been deleted to the auxiliary device. Similarly, after the second communication device deletes the unique identification code stored locally on the second communication device, the second communication device may also return confirmation information that the unique identification code has been deleted to the auxiliary device.
[0074] For example, when a user needs to release the binding relationship between a Bluetooth headset and a peripheral device, the user can click an unbinding control on the mobile phone to input a device unbinding instruction to the mobile phone.
[0075] Based on this, when the mobile phone receives the device unbinding instruction input by the user, the mobile phone can send a first unbinding instruction to the Bluetooth headset. After the Bluetooth headset receives the first unbinding instruction, the Bluetooth headset can delete the unique identification code stored locally in the Bluetooth headset. The Bluetooth headset can also send a second unbinding instruction to the peripheral device. After the peripheral device receives the second unbinding instruction, the peripheral device can delete the unique identification code stored locally in the peripheral device. After both the Bluetooth headset and the peripheral device delete the stored unique identification code, the purpose of unbinding the Bluetooth headset and the peripheral device can be achieved.
[0076] After the Bluetooth headset deletes the unique identification code stored locally in the Bluetooth headset, the Bluetooth headset can also return a confirmation message that the unique identification code has been deleted to the mobile phone. Similarly, after the peripheral device deletes the unique identification code stored locally in the peripheral device, the peripheral device can also return a confirmation message that the unique identification code has been deleted to the mobile phone.
[0077] In step d, when confirmation information indicating that the unique identification code has been deleted is received from the first communication device and the second communication device, the binding relationship information between the first communication device and the second communication device is deleted.
[0078] In this implementation, when the auxiliary device receives confirmation information returned by the first communication device and the second communication device indicating that the unique identification code has been deleted, the binding relationship information between the first communication device and the second communication device may be deleted.
[0079] Exemplarily, when the mobile phone receives confirmation information returned by the Bluetooth headset and the peripheral device indicating that the unique identification code has been deleted, the binding relationship information between the Bluetooth headset and the peripheral device can be deleted.
[0080] As can be seen from the above, in the method for establishing a communication connection provided by the present application, a unique identification code is generated and sent to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code. Through the method for establishing a communication connection of the present application, it is possible to establish a communication connection between the first communication device and the second communication device through the unique identification code. Since only the first communication device and the second communication device store the unique identification code, the first communication device and the second communication device will not mistakenly establish a communication connection with other communication devices that do not have a unique identification code, thereby improving the accuracy and security of establishing a communication connection.
[0081] The following provides a method for establishing a communication connection applied to a first communication device. Refer to FIG. 2 , which is a flowchart illustrating another method for establishing a communication connection provided in an embodiment of the present application. The method for establishing a communication connection provided in an embodiment of the present application can be applied to the first communication device. The method for establishing a communication connection may include S201, as detailed below:
[0082] In S201 , when a unique identification code generated and sent by the auxiliary device is received, a communication connection with the second communication device is established according to the unique identification code.
[0083] In the embodiment of the present application, after receiving the unique identification code sent by the auxiliary device, the first communication device can establish a communication connection with the second communication device that has received the same unique identification code based on the unique identification code.
[0084] For example, after receiving the unique identification code sent by the mobile phone, the Bluetooth headset can establish a communication connection with a peripheral device that has received the same unique identification code based on the unique identification code.
[0085] In addition, the first communication device may further store the received unique identification code locally in the first communication device.
[0086] In addition, after receiving the first unbinding instruction sent by the auxiliary device, the first communication device can also delete the unique identification code stored locally on the first communication device and send a second unbinding instruction to the second communication device to instruct the second communication device to delete the unique identification code stored locally on the second communication device.
[0087] The following provides a method for establishing a communication connection applied to a second communication device. Refer to FIG. 3 , which is a flowchart of another method for establishing a communication connection provided in an embodiment of the present application. The method for establishing a communication connection provided in an embodiment of the present application can be applied to the second communication device. The method for establishing a communication connection may include S301, as detailed below:
[0088] In S301 , when a unique identification code generated and sent by the auxiliary device is received, a communication connection with the first communication device is established according to the unique identification code.
[0089] In the embodiment of the present application, after receiving the unique identification code sent by the auxiliary device, the second communication device can establish a communication connection with the first communication device that has received the same unique identification code based on the unique identification code.
[0090] Exemplarily, after receiving the unique identification code sent by the mobile phone, the peripheral device can establish a communication connection with the Bluetooth headset that has received the same unique identification code based on the unique identification code.
[0091] In addition, the second communication device may further store the received unique identification code locally in the second communication device.
[0092] In addition, the second communication device may also delete the unique identification code stored locally on the second communication device after receiving the second unbinding instruction sent by the first communication device.
[0093] The following provides a method for establishing a communication connection in a communication system. See Figure 4, which is a flowchart illustrating another method for establishing a communication connection provided in an embodiment of the present application. The method for establishing a communication connection provided in an embodiment of the present application can be applied to a communication system. The method for establishing a communication connection may include S401 to S402, as detailed below:
[0094] In S401, a unique identification code is generated by the auxiliary device, and the unique identification code is sent to the first communication device and the second communication device respectively.
[0095] In an embodiment of the present application, when a communication connection needs to be established between a first communication device and a second communication device, a unique identification code can be first generated by an auxiliary device, and then the unique identification code can be sent to the first communication device and the second communication device respectively by the auxiliary device.
[0096] In S402, a communication connection is established by the first communication device and the second communication device according to the unique identification code.
[0097] In the embodiment of the present application, a unique identification code may be received by the first communication device and the second communication device, and then a communication connection may be established by the first communication device and the second communication device according to the unique identification code.
[0098] In addition, the first communication device may store the received unique identification code locally on the first communication device, and the second communication device may store the received unique identification code locally on the second communication device.
[0099] In addition, the auxiliary device can also receive the device unbinding instruction input by the user, and then the first unbinding instruction can be sent to the first communication device through the auxiliary device. After that, the first communication device can delete the unique identification code stored locally on the first communication device after receiving the first unbinding instruction, and the first communication device can send the second unbinding instruction to the second communication device. After that, the second communication device can delete the unique identification code stored locally on the second communication device after receiving the second unbinding instruction.
[0100] The following is an example of applying the method for establishing a communication connection provided in an embodiment of the present application to a Bluetooth headset.
[0101] When a communication connection needs to be established between the Bluetooth headset and a peripheral device, a unique identification code can be generated through a preset program on the mobile phone, and a communication connection between the Bluetooth headset and the peripheral device can be established through the mobile phone.
[0102] Afterwards, the mobile phone can send the generated unique identification code to the Bluetooth headset and the peripheral device respectively, and generate and store the binding relationship information between the Bluetooth headset and the peripheral device.
[0103] When the Bluetooth headset receives the unique identification code sent by the mobile phone, the Bluetooth headset can establish a communication connection with the peripheral device that receives the same unique identification code based on the unique identification code. The Bluetooth headset can also store the received unique identification code locally in the Bluetooth headset.
[0104] Similarly, when the peripheral device receives the unique identification code sent by the mobile phone, the peripheral device can establish a communication connection with the Bluetooth headset that receives the same unique identification code based on the unique identification code, and the peripheral device can also store the received unique identification code locally in the peripheral device.
[0105] When the user needs to unbind the Bluetooth headset and the peripheral device, he can click the unbinding control on the mobile phone to input the device unbinding instruction to the mobile phone. Based on this, when the mobile phone receives the device unbinding instruction input by the user, the mobile phone can send a first unbinding instruction to the Bluetooth headset. After the Bluetooth headset receives the first unbinding instruction, the Bluetooth headset can delete the unique identification code stored locally in the Bluetooth headset. The Bluetooth headset can also send a second unbinding instruction to the peripheral device. After the peripheral device receives the second unbinding instruction, the peripheral device can delete the unique identification code stored locally in the peripheral device.
[0106] After the Bluetooth headset deletes the unique identification code stored locally in the Bluetooth headset, the Bluetooth headset can also return a confirmation message that the unique identification code has been deleted to the mobile phone. Similarly, after the peripheral device deletes the unique identification code stored locally in the peripheral device, the peripheral device can also return a confirmation message that the unique identification code has been deleted to the mobile phone.
[0107] When the mobile phone receives the confirmation information returned by the Bluetooth headset and the peripheral device that the unique identification code has been deleted, the binding relationship information between the Bluetooth headset and the peripheral device can be deleted.
[0108] Through the above process, it is possible to avoid the Bluetooth device from establishing a communication connection with peripheral devices other than the target peripheral device, thereby improving the accuracy and security of establishing a Bluetooth headset communication connection.
[0109] Please refer to Figure 5, which is a schematic diagram of the structure of an auxiliary device provided in an embodiment of the present application. As shown in Figure 5, the auxiliary device 50 may include a generating unit 51 and a sending unit 51.
[0110] The generating unit 51 is configured to generate a unique identification code.
[0111] The sending unit 51 is configured to send the unique identification code to the first communication device and the second communication device respectively, so as to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code.
[0112] Optionally, the auxiliary device 50 may also be used to:
[0113] Encrypting the unique identification code using a key to obtain an encrypted unique identification code;
[0114] Sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code, including:
[0115] The encrypted unique identification code and the key are sent to the first communication device and the second communication device respectively, to instruct the first communication device and the second communication device to decrypt the encrypted unique identification code according to the key and establish a communication connection through the decrypted unique identification code.
[0116] Optionally, the auxiliary device 50 may be specifically used for:
[0117] The unique identification code is sent to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to store the unique identification code locally and establish a communication connection according to the unique identification code.
[0118] Optionally, the auxiliary device 50 may also be used to:
[0119] Generate and store binding relationship information between the first communication device and the second communication device.
[0120] Optionally, the device 50 for establishing a communication connection may be further configured to:
[0121] After receiving a device unbinding instruction input by a user, sending a first unbinding instruction to the first communication device to instruct the first communication device to delete the unique identification code stored locally on the first communication device, and instructing the first communication device to send a second unbinding instruction to the second communication device to instruct the second communication device to delete the unique identification code stored locally on the second communication device;
[0122] When confirmation information indicating that the unique identification code has been deleted is received from the first communication device and the second communication device, the binding relationship information between the first communication device and the second communication device is deleted.
[0123] Please refer to Figure 6, which is a schematic diagram of the structure of a first communication device provided in an embodiment of the present application. As shown in Figure 6, the first communication device 60 may include a first communication connection establishing unit 61.
[0124] The communication connection establishing unit 61 is configured to establish a communication connection with a second communication device according to the unique identification code when receiving the unique identification code generated and sent by the auxiliary device; wherein the second communication device is a device that also receives the unique identification code sent by the auxiliary device.
[0125] Optionally, the first communication device 60 may be further configured to:
[0126] storing the unique identification code locally on the first communication device;
[0127] After receiving the first unbinding instruction sent by the auxiliary device, the unique identification code stored locally on the first communication device is deleted, and a second unbinding instruction is sent to the second communication device to instruct the second communication device to delete the unique identification code stored locally on the second communication device.
[0128] Please refer to Figure 7, which is a structural diagram of an auxiliary device provided by another embodiment of the present application. As shown in Figure 7, the auxiliary device 7 provided in this embodiment may include: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. For example, a program corresponding to a method for establishing a communication connection. When the processor 70 executes the computer program 72, the steps in the above-mentioned method embodiment for establishing a communication connection are implemented, such as S101~S102 shown in Figure 1. When the processor 70 executes the computer program 72, the functions of each module / unit in the embodiment corresponding to the above-mentioned auxiliary device 50 are implemented, such as the functions of units 51~52 shown in Figure 5.
[0129] Exemplarily, the computer program 72 may be divided into one or more modules / units, one or more of which are stored in the memory 71 and executed by the processor 70 to implement the present application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 72 in the auxiliary device 7. For example, the computer program 72 may be divided into a generation unit 51 and a sending unit 51. The specific functions of each unit can be referred to the relevant description of the embodiment corresponding to FIG5 and are not repeated here.
[0130] Those skilled in the art will understand that FIG7 is merely an example of the auxiliary device 7 and does not constitute a limitation on the auxiliary device 7 , which may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0131] Please refer to Figure 8, which is a schematic diagram of the structure of a communication device provided by another embodiment of the present application. As shown in Figure 8, the communication device 8 provided in this embodiment may include: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. For example, a program corresponding to a method for establishing a communication connection. When the processor 80 executes the computer program 82, the steps in the above-mentioned method embodiment for establishing a communication connection are implemented, such as S201 shown in Figure 2. When the processor 80 executes the computer program 82, the functions of each module / unit in the embodiment corresponding to the above-mentioned communication device 60 are implemented, such as the function of the unit 61 shown in Figure 6.
[0132] Exemplarily, the computer program 82 may be divided into one or more modules / units, one or more of which are stored in the memory 81 and executed by the processor 80 to implement the present application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 82 in the communication device 8. For example, the computer program 82 may be divided into the communication connection establishment unit 61. The specific functions of each unit can be referred to the relevant description of the embodiment corresponding to FIG6, and are not repeated here.
[0133] Those skilled in the art will understand that FIG8 is merely an example of the communication device 8 and does not limit the communication device 8 , which may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0134] Processors 70 and 80 may be central processing units (CPUs), other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0135] Memory 71 and memory 81 can be internal storage units of the terminal device 7, such as the hard disk or memory of the auxiliary device 7 and communication device 8. Memory 71 and memory 81 can also be external storage devices of the auxiliary device 7 and communication device 8, such as plug-in hard disks, smart media cards (SMCs), secure digital (SD) cards, or flash cards equipped on the terminal device 7. Furthermore, memory 71 and memory 81 can include both internal storage units and external storage devices of the auxiliary device 7 and communication device 8. Memory 71 and memory 81 are used to store computer programs and other programs and data required by the electronic device. Memory 71 and memory 81 can also be used to temporarily store data that has been output or is about to be output.
[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units as needed, that is, the internal structure of the auxiliary equipment and the communication equipment can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0137] The embodiment of the present application further provides a communication system, which may include an auxiliary device, a communication device, and a second communication device. For example, the auxiliary device may be a mobile phone, the communication device may be a Bluetooth headset, and the second communication device may be a peripheral device.
[0138] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0139] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device implements the steps in the above-mentioned various method embodiments.
[0140] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0141] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0142] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for establishing a communication connection, applied to an auxiliary device, characterized in that: The method comprises: Generate a unique identification code; The unique identification code is sent to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code.
2. The method according to claim 1, characterized in that After the unique identification code is generated, the method further includes: Encrypting the unique identification code by using a key to obtain the encrypted unique identification code; The sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code includes: The encrypted unique identification code and the key are sent to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to decrypt the encrypted unique identification code according to the key and establish a communication connection through the decrypted unique identification code.
3. The method according to claim 1, characterized in that The sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code includes: Sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to locally store the unique identification code and establish a communication connection according to the unique identification code; After sending the unique identification code to the first communication device and the second communication device respectively to instruct the first communication device and the second communication device to establish a communication connection according to the unique identification code, the method further includes: Generate and store binding relationship information between the first communication device and the second communication device.
4. The method according to claim 3, characterized in that After generating and storing the binding relationship information between the first communication device and the second communication device, the method further includes: After receiving the device unbinding instruction input by the user, sending a first unbinding instruction to the first communication device to instruct the first communication device to delete the unique identification code stored locally in the first communication device, and instructing the first communication device to send a second unbinding instruction to the second communication device to instruct the second communication device to delete the unique identification code stored locally in the second communication device; When confirmation information indicating that the unique identification code has been deleted is received from the first communication device and the second communication device, the binding relationship information between the first communication device and the second communication device is deleted.
5. A method for establishing a communication connection, applied to a first communication device, characterized in that: The method comprises: When the unique identification code generated and sent by the auxiliary device is received, a communication connection with a second communication device is established according to the unique identification code; wherein the second communication device is a device that also receives the unique identification code sent by the auxiliary device.
6. The method according to claim 5, characterized in that After receiving the unique identification code generated and sent by the auxiliary device, the method further includes: Storing the unique identification code locally in the first communication device; After receiving the first unbinding instruction sent by the auxiliary device, the unique identification code stored locally in the first communication device is deleted, and a second unbinding instruction is sent to the second communication device to instruct the second communication device to delete the unique identification code stored locally in the second communication device.
7. An auxiliary device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for establishing a communication connection according to any one of claims 1 to 4 is implemented.
8. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for establishing a communication connection according to claim 5 or 6 is implemented.
9. A communication system, characterized in that: Comprising the auxiliary device as claimed in claim 7 and the communication device as claimed in claim 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for establishing a communication connection according to any one of claims 1 to 4 is implemented, or the method for establishing a communication connection according to claim 5 or 6 is implemented.
Citation Information
Patent Citations
Wireless earphone pairing method and system
CN110933616A
Bluetooth earphone, pairing connection method and device thereof, and TWS earphone
CN111629369A
Method for carrying out address exchange between Bluetooth devices, communication system and Bluetooth headset
CN112105010A
Method and device for establishing communication connection, communication system and storage medium
CN117896847A