Bluetooth connection method, device and equipment

By modifying the Bluetooth logo by presetting buttons on Bluetooth devices, the connection difficulty caused by multiple devices having the same Bluetooth name is solved, and the function of quickly identifying and connecting the required devices is realized.

CN119922518APending Publication Date: 2025-05-02HYTERA COMM CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311432571.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

During the Bluetooth device connection process, multiple devices have the same Bluetooth name, making it difficult for users to quickly find and connect the required devices.

Method used

By presetting keys on the electronic device, the Bluetooth logo is modified to make it easier to recognize when scanning. The specific steps include receiving key operation, modifying the Bluetooth logo, sending the identification information, and performing a Bluetooth connection in response to the connection request.

Benefits of technology

It enables quick identification and connection of required devices in multiple Bluetooth devices, simplifies user operations and improves the efficiency of Bluetooth connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922518A_ABST
    Figure CN119922518A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth connection method and device and a terminal, first electronic equipment receives a first operation on a preset key, the first electronic equipment responds to the first operation, a Bluetooth identifier of the first electronic equipment is modified from a first identifier to a second identifier according to preset identification identifier information, and the Bluetooth identifier is used for identifying the first electronic equipment. And sending the Bluetooth identifier, and in response to a connection request of a second electronic device, connecting with the second electronic device based on Bluetooth, the connection request being sent by the second electronic device after receiving a confirmation message of the Bluetooth identifier. The Bluetooth identifier is used for identifying the first electronic equipment, so that the Bluetooth identifier can be quickly found by the second electronic equipment, and the Bluetooth connection mode can be improved on the basis of Bluetooth connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a Bluetooth connection method, device and equipment. Background Art

[0002] In the traditional Bluetooth pairing and connection process, a Bluetooth device obtains information about other Bluetooth devices, such as Bluetooth names, by scanning. Users need to find the device to be paired from multiple scan results. When multiple Bluetooth devices in the scan results have the same Bluetooth name, it is difficult to quickly find the Bluetooth device to be paired among these devices with the same Bluetooth name. For example, when the Bluetooth device is a walkie-talkie, the walkie-talkie models used in a user team are usually the same, and the walkie-talkies have the same Bluetooth names set at the factory. Therefore, in this case, when scanning Bluetooth devices and wanting to connect to a walkie-talkie in the team, multiple walkie-talkies with the same Bluetooth name will be found, making it difficult for users to quickly find the device they want to pair among these walkie-talkies with the same Bluetooth name.

[0003] The existing Bluetooth connectivity has room for improvement. Summary of the invention

[0004] The present application provides a Bluetooth connection method, apparatus and device, the purpose of which is to improve the Bluetooth connection function and solve the problem that Bluetooth devices are difficult to identify when performing Bluetooth connection.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A first aspect of the present application provides a Bluetooth connection method, comprising:

[0007] The first electronic device receives a first operation on a preset key;

[0008] In response to the first operation, the first electronic device changes the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to preset identification information, wherein the Bluetooth identifier is used to identify the first electronic device;

[0009] Sending the Bluetooth identifier;

[0010] The first electronic device connects to the second electronic device based on Bluetooth in response to a connection request from the second electronic device; the connection request is sent by the second electronic device after receiving a confirmation message of the Bluetooth identifier.

[0011] Optionally, the changing the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to preset identification information includes:

[0012] Using a preset identification mark as the second identification mark; or,

[0013] A preset identification identifier is added to the first identifier to generate the second identifier.

[0014] Optionally, after the connection with the second electronic device is established based on Bluetooth, the method further includes:

[0015] In response to the second operation on the preset key, the first electronic device changes the Bluetooth identifier of the electronic device from the second identifier to the first identifier.

[0016] Optionally, the first operation on the preset key is pressing the preset key once or continuously pressing the preset key a preset number of times; the second operation on the preset key includes pressing the preset key once again or continuously pressing the preset key a preset number of times;

[0017] or,

[0018] The first operation on the preset key is to continuously press the preset key; the second operation on the preset key includes releasing the preset key.

[0019] Optionally, the preset key is at least one designated key on the first electronic device, and the at least one designated key includes a physical key and / or a virtual key.

[0020] Optionally, the method further includes:

[0021] The first electronic device sends preset identification information to the second electronic device, or receives an identification sent by the second electronic device, and is configured as the preset identification information.

[0022] Optionally, before the first electronic device changes the Bluetooth identifier of the first electronic device from the first identifier to the second identifier in response to the first operation, the method further includes:

[0023] In response to the configuration operation, the first electronic device configures the preset identification mark to a specified character.

[0024] A second aspect of the present application provides a Bluetooth connection device, which is applied to a first electronic device, and the device includes:

[0025] An acquisition module, used for receiving a first operation on a preset key;

[0026] a modification module, configured to modify, in response to the first operation, the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to a preset identification identifier, wherein the Bluetooth identifier is used to identify the first electronic device;

[0027] A sending module, used for sending the Bluetooth identifier;

[0028] The connection module is used to connect with the second electronic device based on Bluetooth in response to a connection request of the second electronic device; the connection request is sent by the second electronic device after receiving a confirmation message of the Bluetooth identifier.

[0029] A third aspect of the present application provides a terminal, including:

[0030] Memory for storing computer programs;

[0031] The processor is used to run the computer program to implement the Bluetooth connection method described in the first aspect of the present application.

[0032] A fourth aspect of the present application provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the Bluetooth connection method described in any one of claims 1 to 7.

[0033] The fifth aspect of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the Bluetooth connection method provided in the first aspect of the present application.

[0034] In the Bluetooth connection method, apparatus and device provided by the present application, a first electronic device receives a first operation on a preset button, and in response to the first operation, the first electronic device modifies the Bluetooth identifier of the first electronic device from the first identifier to the second identifier, and in response to the connection request of the second electronic device, connects with the second electronic device based on Bluetooth. The advantage of the present application is that the first electronic device can modify the Bluetooth identifier of the first electronic device through a preset button on the device. Since the Bluetooth identifier is used to identify the first electronic device, the modification of the Bluetooth identifier is conducive to the first electronic device being quickly discovered among a large number of Bluetooth devices, and establishing a Bluetooth connection with the Bluetooth connection initiator, thereby improving the Bluetooth connection method. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 A flowchart of a Bluetooth connection method provided in an embodiment of the present application;

[0037] Figure 2A flowchart of another Bluetooth connection method provided in an embodiment of the present application;

[0038] Figure 3 A flowchart of another Bluetooth connection method provided in an embodiment of the present application;

[0039] Figure 4 This is an example diagram of a Bluetooth connection device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0041] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0042] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0043] The inventor found in the process of research that the current connection of Bluetooth devices, especially the first connection between Bluetooth devices, requires the user to manually initiate the connection operation. In the case where multiple Bluetooth devices have the same Bluetooth name, it is difficult for the user to quickly find the Bluetooth device to be connected among the multiple Bluetooth devices. When the user determines the Bluetooth device to be connected, the main device initiates a Bluetooth pairing and connection request to the device to be connected based on the MAC address. It can be seen that there is still room for improvement in the existing Bluetooth connection function of electronic devices.

[0044] In order to improve the Bluetooth connection function of an electronic device, an embodiment of the present application discloses a Bluetooth connection method, which is applied to an electronic device with a Bluetooth communication function.

[0045] The electronic device has at least one physical or virtual button. In order to implement the Bluetooth connection method described in the embodiment of the present application, it is necessary to first configure the Bluetooth quick pairing function for at least one physical or virtual button. The configuration of the Bluetooth quick pairing function will be first described below.

[0046] The user enters the Bluetooth quick pairing function configuration interface on the terminal. In some implementations, the Bluetooth quick pairing function is set under the "settings" function of the terminal, and the user enters the Bluetooth quick pairing function configuration interface by operating the various function item selection controls in the "settings" interface. It is understandable that the Bluetooth quick pairing function configuration interface is only an example, and the Bluetooth quick pairing function can also be configured by other means such as voice.

[0047] Taking the Bluetooth terminal UE as an example, the default Bluetooth identifier of the UE is UEBT. After starting the configuration of the Bluetooth fast pairing function, at least one button is selected as the preset button. The at least one button can be a physical and / or virtual button.

[0048] A preset identification mark is configured for a preset button. The preset identification mark is used to change the original Bluetooth name of the terminal so that it can be quickly discovered. In some implementations, the preset identification mark is a character, and the character types include: specific (such as Hytera) and custom.

[0049] In some implementations, when the user selects the "Custom" option, an input box pops up, and the user can enter a custom preset identification, such as Pol. After the user confirms, the preset identification will be displayed in the Bluetooth identification during the Bluetooth connection process. The preset identification can be displayed by adding the preset identification to the original Bluetooth identification, such as Pol_UEBT; or replacing the original Bluetooth identification with the preset identification, such as UEBT being replaced by Pol.

[0050] It is understandable that in order to integrate the closing function of the Bluetooth quick pairing function, the character type also includes: default. Default represents the original Bluetooth name of the electronic device.

[0051] It is understandable that the above method of first selecting a preset key and then configuring a preset character is only an example, and the execution order of selecting a preset key and configuring a preset identification mark is not limited. The preset key can also be a pre-specified key in the Bluetooth device, and the user does not need to select it. The user only needs to configure the preset identification mark, which is not limited here.

[0052] The first aspect of the present application provides a Bluetooth connection method, such as Figure 1 As shown, including:

[0053] S11. The first electronic device receives a first operation on a preset key.

[0054] The preset key may be a physical key and / or a virtual key, and the preset key is at least one key designated on the electronic device. The first operation of the preset key may be, for example, pressing the key once, pressing the key multiple times, or continuously pressing the key. For a virtual key, the first operation may also be a preset gesture, etc.

[0055] S12: In response to the first operation, the first electronic device changes the Bluetooth identifier of the first electronic device from the first identifier to the second identifier according to the preset identification information.

[0056] The Bluetooth identifier is used to identify the first electronic device. An example of the Bluetooth identifier is a Bluetooth name.

[0057] In some implementations, an example of modifying the first identifier to the second identifier is to replace the first identifier with a preset identification identifier, such as if the preset identification identifier is "HYT", then the first identifier "UEBT" is modified to "HYT", or the preset identification identifier "HYT" is added to the first identifier "UEBT" to generate the second identifier "HYT_UEBT".

[0058] It can be understood that before S11, a step of configuring a preset identification mark is also included: the first electronic device configures the preset identification mark to a specified character in response to the configuration operation, such as configuring the preset identification mark to "HYT".

[0059] S13: Send Bluetooth identification.

[0060] The purpose of sending the Bluetooth identifier is to enable the second electronic device to search for the first electronic device when searching for Bluetooth devices.

[0061] S14. The first electronic device connects to the second electronic device based on Bluetooth in response to the connection request of the second electronic device.

[0062] The connection request is sent by the second electronic device after receiving a confirmation message of the Bluetooth identification.

[0063] S15. The first electronic device changes the Bluetooth identifier of the first electronic device from the second identifier to the first identifier in response to the second operation on the preset button.

[0064] Examples of the second operation include pressing a key once, pressing a key multiple times, or releasing a pressed key, etc. For a virtual key, the second operation may also be a preset gesture, etc.

[0065] It is understandable that the first operation and the second operation may be the same, for example, the first operation is to press a button once to change the Bluetooth identifier from the first identifier to the second identifier, and the second operation is to press the button again to change the Bluetooth identifier back to the first identifier. The first operation and the second operation may also be different, for example, the first operation is to press a button once to change the Bluetooth identifier from the first identifier to the second identifier, and the second operation is to press the button twice to change the Bluetooth identifier back to the first identifier.

[0066] Optionally, the changing the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to preset identification information includes:

[0067] A preset identification identifier is used as the second identifier; or a preset identification identifier is added to the first identifier to generate the second identifier.

[0068] Optionally, after the connection with the second electronic device is established based on Bluetooth, the method further includes:

[0069] In response to the second operation on the preset key, the first electronic device changes the Bluetooth identifier of the first electronic device from the second identifier to the first identifier.

[0070] Optionally, the first operation on the preset key is pressing the preset key once or continuously pressing the preset key a preset number of times; the second operation on the preset key includes pressing the preset key once again or continuously pressing the preset key a preset number of times;

[0071] or,

[0072] The first operation on the preset key is to continuously press the preset key; the second operation on the preset key includes releasing the preset key.

[0073] By restoring the Bluetooth ID to the original Bluetooth ID, the Bluetooth terminal can quickly perform Bluetooth connection without affecting the Bluetooth ID of the Bluetooth terminal, and thus without affecting other functions of the Bluetooth terminal.

[0074] Optionally, the preset key is at least one designated key on the first electronic device, and the at least one designated key is a physical key and / or a virtual key.

[0075] Optionally, the method further includes:

[0076] The first electronic device sends preset identification information to the second electronic device, or receives an identification sent by the second electronic device, and is configured as the preset identification information.

[0077] It can be understood that by sending the relevant information of the Bluetooth identifier modification to the second electronic device, the second electronic device and its user can know that the Bluetooth identifier of the first electronic device is the second identifier, so that when the second electronic device scans Bluetooth devices, the user can quickly find the first electronic device; or when the second electronic device scans Bluetooth devices, it can automatically identify the first electronic device and initiate a Bluetooth connection. Receiving the identification identifier sent by the second electronic device can also enable the first electronic device to know in advance and configure the preset identification identifier information.

[0078] Optionally, before the first electronic device changes the Bluetooth identifier of the first electronic device from the first identifier to the second identifier in response to the first operation, the method further includes:

[0079] In response to the configuration operation, the first electronic device configures the preset identification mark to a designated character.

[0080] To facilitate understanding of the scheme of the present invention, the following will take three terminals UE1, UE2, and UE3 as examples to illustrate the Bluetooth connection method of the present application: Taking the P1 button on the terminal as an example, the Bluetooth fast pairing function is configured for UE1, UE2, and UE3 respectively as follows:

[0081] Assume that the original Bluetooth name of UE1 is UE1BT, where the Bluetooth name is an example of a Bluetooth identifier, the P1 button is configured as "Bluetooth Fast Pairing", and the preset identification identifier is configured as "Default". In this case, if the P1 button is pressed, the Bluetooth name of UE1 remains unchanged and is still UE1BT.

[0082] Assume that the original Bluetooth name of UE2 is UE2BT, the P1 button is configured as "Bluetooth Fast Pairing", and the preset identification is configured as the specific identification "Hytera". In this case, if the P1 button is pressed, the Bluetooth name of UE2 is changed to Hytera_UE2BT, and if the P1 button is released, the Bluetooth name is restored to UE2BT.

[0083] Assume that the original Bluetooth name of UE3 is UE3BT, the P1 button is configured as "Bluetooth Fast Pairing", the preset identification is configured as "Custom", and the custom identification code is set to "Pol". In this case, if the P1 button is pressed, the Bluetooth name of UE3 is changed to Pol_UE3BT, and if the P1 button is released, the Bluetooth name is restored to UE3BT.

[0084] It can be seen that by configuring the Bluetooth quick pairing function for the preset button, the Bluetooth name of the terminal is modified after the preset button is pressed. It can be understood that the above use of the preset identification identifier as the prefix of the original Bluetooth name is only an example and not a limitation. For example, the original Bluetooth name can also be modified to the preset identification identifier.

[0085] It is understandable that the preset identification mark can change the original Bluetooth name of the terminal and also supports user customization. Therefore, after configuring the preset identification mark of the terminal, the user can quickly identify the terminal to be connected from multiple Bluetooth devices.

[0086] It can be understood that the above method of first selecting a preset button and then configuring a preset identification mark is only an example, and the execution order of selecting the preset button and configuring the preset identification mark is not limited.

[0087] In addition to its obvious identification function, the preset identification mark can also be used as trigger information for the Bluetooth quick pairing function. That is, when the preset identification mark is configured as non-"default", the Bluetooth terminal turns on the Bluetooth quick pairing function, and the preset button is pressed at this time, the Bluetooth mark is modified.

[0088] A Bluetooth connection method embodiment of the present application, such as Figure 2 As shown, the main terminal is a terminal that initiates a Bluetooth pairing connection, and the terminal to be paired is a terminal that is to be paired with the main terminal through Bluetooth.

[0089] Figure 2 The illustrated embodiment includes the following steps:

[0090] S21. The master terminal (ie, the second electronic device) initiates a scan for Bluetooth devices.

[0091] S22: In response to a preset key being pressed, the terminal to be paired (ie, the first electronic device) modifies the Bluetooth name from the first identifier to the second identifier according to preset identification information. There may be one or more terminals to be paired.

[0092] Take UE1 as the main terminal, and UE2 and UE3 as the terminals to be paired. As mentioned above, it is assumed that UE1 wants to establish a Bluetooth connection with a terminal to be paired whose Bluetooth name contains a preset identification identifier "Hytera"; the preset identification identifier of UE2 is configured as "Hytera", and the preset identification identifier of UE3 is configured as "Pol". When the P1 key of UE2 is pressed, the Bluetooth name of UE2 is modified to Hytera_UE2BT; when the P1 key of UE3 is pressed, the Bluetooth name of UE3 is modified to Pol_UE3BT. In this embodiment, the user of UE1 can obtain the preset identification identifier by exchanging information with the user of the terminal to be connected in advance.

[0093] It is understandable that the Bluetooth name is an example of a Bluetooth identifier and is not intended to be limiting.

[0094] S23, the terminal to be paired sends the Bluetooth name; that is, UE2 sends the modified Bluetooth name Hytera_UE2BT; UE3 sends the modified Bluetooth name Pol_UE3BT.

[0095] S24: The master terminal scans and obtains the Bluetooth name of each terminal to be paired.

[0096] Continuing with the above example, UE1 scans the Bluetooth name Hytera_UE2BT based on the preset identification identifier of UE2, and the Bluetooth name Pol_UE3BT based on the preset identification identifier of UE3.

[0097] S25. In response to the user's selection operation, the master terminal establishes a Bluetooth connection with the terminal to be paired selected by the user.

[0098] Continuing with the above example, the user of the main terminal selects a terminal to be paired with a Bluetooth name of Hytera_UE2BT from the scanned Bluetooth names according to a predetermined preset identification mark to establish a Bluetooth connection.

[0099] S26: In response to the preset key being released, the terminal to be paired changes the Bluetooth name to the original Bluetooth name.

[0100] In another embodiment of the present application, it is understandable that in addition to the user manually selecting a device to be connected according to a predetermined preset identification mark, the main terminal can also automatically identify the preset identification mark and connect via Bluetooth.

[0101] like Figure 3 As shown, the following steps are included:

[0102] S31. The master terminal (ie, the second electronic device) initiates a scan for Bluetooth devices.

[0103] S32: In response to a preset key being pressed, the terminal to be paired (ie, the first electronic device) changes the Bluetooth name from the first identifier to the second identifier.

[0104] Take UE1 as the main terminal and UE2 as the terminal to be paired as an example. As mentioned above, the preset identification mark of UE2 is configured as "Hytera". When the P1 key of UE2 is pressed, the Bluetooth name of UE2 is modified to Hytera_UE2BT.

[0105] S33: The terminal to be paired sends preset identification information to the main terminal.

[0106] Continuing with the above example, UE2 sends a preset identification "Hytera" to the master terminal, or sends a message to the master terminal that the Bluetooth name of UE2 is changed to Hytera_UE2BT. At the same time, the terminal to be paired sends the Bluetooth name.

[0107] In some embodiments, the terminal to be paired sends a message to the main terminal that the Bluetooth name of the terminal to be paired is changed from the first identifier to the second identifier. Alternatively, before step S31, the terminal to be paired sends a preset identification identifier to the main terminal.

[0108] S34: The master terminal receives preset identification information of the terminal to be paired, and configures a preset identification of the master terminal.

[0109] Continuing with the above example, UE1 receives a message that the preset characters of UE2 are modified to "Hytera", or the Bluetooth name is modified to Hytera_UE2BT, and configures the preset characters of UE1 to "Hytera".

[0110] S35, the main terminal determines whether a Bluetooth name matching the preset identification mark of the main terminal is scanned, if yes, execute S36, if not, return to execute S31.

[0111] One example of matching is same, another example is included, etc. The matching condition can be set based on actual needs.

[0112] That is, the master terminal determines whether there is a Bluetooth name matching the preset identification mark of the master terminal among the scanned Bluetooth names, or a Bluetooth name including the preset identification mark of the master terminal.

[0113] Continuing with the above example, the preset identification identifier of UE1 is configured as "Hytera", and the Bluetooth name matching the preset identification identifier of UE1 is the Bluetooth name of UE2, Hytera_UE2BT.

[0114] S36. The main terminal automatically establishes a Bluetooth connection with the matching terminal.

[0115] Continuing with the above example, the matching terminal is UE2, and UE1 automatically establishes a Bluetooth connection with UE2.

[0116] In some implementations, the Bluetooth connection with the matching terminal is established by initiating a Bluetooth pairing request to the matching terminal and establishing a Bluetooth connection with the matching terminal after interacting with the matching terminal. Continuing with the above example, a Bluetooth connection is established between UE1 and UE2.

[0117] S37: In response to the preset key being released, the terminal to be paired changes the Bluetooth name from the second identifier to the first identifier.

[0118] In this embodiment, once the master terminal finds the specified Bluetooth name during the Bluetooth scanning process, it automatically initiates Bluetooth pairing and connection, without the need for the user to manually select the terminal to be paired and initiate a connection request, thus simplifying the Bluetooth connection process. After the connection is successful, the original Bluetooth name can be restored by releasing the button, without affecting other functions of the Bluetooth terminal.

[0119] In addition to the examples of the above-mentioned processes, the following examples are given for different configurations of UE1, UE2 and UE3:

[0120] In some implementations, the user sets the type of the preset identification mark of UE1 to "default", sets the preset identification mark of the P1 button of UE2 to "Hytera", and sets the preset identification mark of the P1 button of UE3 to "Pol".

[0121] When UE1 initiates Bluetooth search and pairing as the main terminal, UE2 and UE3 press the P1 button respectively, then UE1 terminal can scan UE2 (Bluetooth name is Hytera_UE2BT) and UE3 (Bluetooth name is Pol_UE3BT), but because the preset identification type of UE1 is "default", UE1 will not establish a Bluetooth connection with UE2 and UE3.

[0122] In other implementations, the type of the preset identification identifier of UE1 is set to "custom" and the customized preset identification identifier is set to "Pol", the preset identification identifier of the P1 button of UE2 is set to "Hytera", and the preset identification identifier of the P1 button of UE3 is set to "Pol".

[0123] When UE1 initiates Bluetooth search and pairing as the main terminal, UE2 and UE3 press the P1 button respectively, then UE1 terminal can scan UE2 (Bluetooth name is Hytera_UE2BT) and UE3 (Bluetooth name is Pol_UE3BT). Because the preset identification mark of UE1 is "Pol", UE1 establishes a Bluetooth connection with UE3.

[0124] It is understandable that, because there is no need to operate the preset buttons of the main terminal, and because the preset identification mark can be configured first and then the preset button can be selected, for the main terminal, the preset button can be configured instead of selecting the preset button.

[0125] In summary, the Bluetooth connection method disclosed in the embodiment of the present application triggers the Bluetooth terminal to temporarily modify the Bluetooth name to a specified name by pressing a button, so that the main terminal user can quickly find the terminal to be paired during Bluetooth scanning.

[0126] Compared with the traditional Bluetooth pairing and connection method, the Bluetooth-based connection method disclosed in the embodiment of the present application can realize fast pairing and connection of the Bluetooth device that the user wants to connect to, especially when connecting to the Bluetooth device for the first time. By pressing the designated button to modify the Bluetooth name, the terminal to be paired can be more easily discovered and identified among many Bluetooth terminals with the same Bluetooth name.

[0127] Moreover, compared with the method of searching for the Bluetooth name of the device to be connected from the Bluetooth names of multiple devices, after one configuration, the user only needs to operate the buttons when pairing and connecting, which simplifies the user's operation and has a higher degree of convenience.

[0128] After the button is released, the device restores the original Bluetooth name, so other functions of the device will not be affected. And compared with the method of improving the Bluetooth connection function based on the MAC address, the method of dynamically modifying the Bluetooth name disclosed in the embodiment of the present application is easier to implement.

[0129] In order to enable those skilled in the art to better understand the scheme of the present invention, the implementation of the present invention is described in detail below in combination with the actual application scenarios of the scheme of the present invention. It is obvious that the description combined with the actual scenario is only a part of the embodiments of the present invention, rather than all the embodiments.

[0130] In one application scenario, when the Bluetooth terminal is a walkie-talkie, the present invention enables the walkie-talkie terminal to quickly connect to Bluetooth. Walkie-talkie users are generally industry users. Most walkie-talkies in a unit or an enterprise may be of the same brand and model, using the same Bluetooth name. They often need to perform team tasks. In the same team, there may be multiple walkie-talkies of the same model used at the same time. At this time, the Bluetooth names of the walkie-talkies of the same model in the team may be the same. Assuming that the Bluetooth names of the walkie-talkies of the same model in the team are all "UEBT", if several walkie-talkies in the team want to connect to Bluetooth at this time, such as UE1, UE2 and UE3, using the traditional method, it is difficult for the walkie-talkie UE1 that initiates Bluetooth scanning to determine the walkie-talkies UE2 and UE3 that need to be connected among the many walkie-talkies with the same Bluetooth name. By adopting the scheme of the present invention, when UE1 as the main terminal needs to establish a Bluetooth connection with UE2 and UE3, the UE1 user obtains the preset identification mark; the UE2 and UE3 users set the preset identification mark of the intercom UE2 and UE3 to "HYT", and set the PTT key to the preset key, and press the PTT key twice in succession to enable the Bluetooth quick connection function of the intercom. When UE1 decides to connect with UE2 and UE3, UE2 and UE3 respond to the user to press the PTT key twice in succession, so that the Bluetooth names of UE2 and UE3 are modified to HYT_UEBT. When the UE1 user selects the scanned Bluetooth device, the Bluetooth name of the intercom with "HYT_UEBT" can be quickly identified, which is convenient for the user to select and initiate a Bluetooth connection. Due to the particularity of the intercom usage scenario, the Bluetooth name of most intercoms cannot be changed arbitrarily for a long time. Therefore, after the Bluetooth connection is established, the user presses the PPT key twice in succession again, and the Bluetooth name of UE2 and UE3 is changed back to UEBT, which will not affect other operations of the intercom. This embodiment achieves the purpose of quickly discovering a Bluetooth terminal to be connected when there are multiple Bluetooth terminals with the same Bluetooth name.

[0131] In the above embodiment, it can be understood that the intercom UE1 can also automatically identify the intercoms UE2 and UE3 to be connected. At this time, UE1 sets the type of the preset identification identifier of UE1 to "custom" according to the preset identification identifier obtained, and sets the customized preset identification identifier to "HYT". UE1 initiates a scan for Bluetooth devices, and UE2 and UE3 respond to the user's short press of the PTT key twice in succession, so that the Bluetooth names of UE2 and UE3 are both modified to HYT_UEBT. UE1 matches the scanned Bluetooth name with the preset identification identifier. When it is confirmed that the Bluetooth names of UE2 and UE3 can match the preset identification identifier, it automatically initiates a Bluetooth connection to UE2 and UE3.

[0132] In another application scenario, when the Bluetooth terminal is a walkie-talkie, user A needs the work assistance of user B, so user A's walkie-talkie UE1 needs to be connected to user B's walkie-talkie UE2 by Bluetooth, but user A does not know the Bluetooth name of the walkie-talkie used by user B, so it is difficult for user A to quickly and accurately confirm which device is the walkie-talkie used by user B from the scanned Bluetooth names. When the walkie-talkies of user A and user B use the solution of the present invention, user A learns the preset identification mark "HYT" of user B's walkie-talkie UE2, user B sets the preset identification mark of walkie-talkie UE2 to "HYT", and sets the PTT key to the preset key, and presses the PTT key twice in succession to turn on the Bluetooth quick connection function of the walkie-talkie. UE1 initiates a scan for Bluetooth devices, and UE2 user B presses the PTT key twice in succession, so that the Bluetooth name of UE2 is modified to HYT_UEBT. When UE1 user A selects the scanned Bluetooth device, it can quickly identify the walkie-talkie with the Bluetooth name "HYT_UEBT", which is convenient for user A to select and initiate a Bluetooth connection. Similarly, after the Bluetooth connection is established, user B repeatedly short presses the PPT key twice, and the Bluetooth name of UE2 is changed back to UEBT. This embodiment achieves the purpose of quickly determining a terminal to be connected to Bluetooth among many Bluetooth terminals when a user needs to connect to an unfamiliar Bluetooth terminal.

[0133] In the above embodiment, it can be understood that the walkie-talkie UE1 can also automatically identify the walkie-talkie UE2 to be connected. UE1 sets the type of the preset identification identifier of UE1 to "custom" according to the preset identification identifier obtained, and sets the customized preset identification identifier to "HYT". UE1 initiates a scan for Bluetooth devices. User B of UE2 briefly presses the PTT key twice in succession, so that the Bluetooth name of UE2 is changed to HYT_UEBT. UE1 matches the scanned Bluetooth name with the preset identification identifier. When it is confirmed that the Bluetooth name of UE2 can match the preset identification identifier, it automatically initiates a Bluetooth connection to UE2.

[0134] The embodiment of the present application also discloses a Bluetooth connection device, such as Figure 4 As shown, including:

[0135] An acquisition module, used for receiving a first operation on a preset key;

[0136] The modification module is used to respond to the first operation and change the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to preset identification information, wherein the Bluetooth identifier is used to identify the first electronic device.

[0137] A sending module, used for sending the Bluetooth identifier;

[0138] The connection module is used to connect with the second electronic device based on Bluetooth in response to a connection request of the second electronic device; the connection request is sent by the second electronic device after receiving a confirmation message of the Bluetooth identifier.

[0139] Figure 4 The Bluetooth-based connection device shown is applied to a first electronic device as a terminal to be paired. Figure 1 The method embodiment shown.

[0140] Figure 4 The Bluetooth-based connection device shown has a Bluetooth quick pairing function pre-configured for the button, so after the button is pressed, the Bluetooth identification of the first electronic device can be modified, laying the foundation for the second electronic device to quickly discover the first electronic device.

[0141] The embodiment of the present application further discloses a terminal, comprising: a memory for storing a computer program, and a processor. The processor is used to run the computer program to implement the Bluetooth connection method disclosed in the above method embodiment.

[0142] An embodiment of the present application further discloses a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the Bluetooth connection method described in the above method embodiment.

[0143] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0144] 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.

Claims

1. A Bluetooth connection method, characterized in that: include: The first electronic device receives a first operation on a preset key; In response to the first operation, the first electronic device changes the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to preset identification information, wherein the Bluetooth identifier is used to identify the first electronic device; Sending the Bluetooth identifier; The first electronic device connects to the second electronic device based on Bluetooth in response to a connection request from the second electronic device; the connection request is sent by the second electronic device after receiving a confirmation message of the Bluetooth identifier.

2. The method according to claim 1, characterized in that The step of changing the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to the preset identification information includes: Using a preset identification mark as the second identification mark; or, A preset identification identifier is added to the first identifier to generate the second identifier.

3. The method according to claim 1 or 2, characterized in that: After the second electronic device is connected to the second electronic device based on Bluetooth, the method further includes: In response to the second operation on the preset key, the first electronic device changes the Bluetooth identifier of the first electronic device from the second identifier to the first identifier.

4. The method according to claim 3, characterized in that The first operation on the preset key includes pressing the preset key once or continuously pressing the preset key a preset number of times; the second operation on the preset key includes pressing the preset key once again or continuously pressing the preset key a preset number of times; or, The first operation on the preset key includes continuously pressing the preset key; the second operation on the preset key includes releasing the preset key.

5. The method according to claim 4, characterized in that The preset key is at least one key designated on the first electronic device, and the at least one designated key includes a physical key and / or a virtual key.

6. The method according to claim 1 or 2, characterized in that: Before the first electronic device changes the Bluetooth identifier of the first electronic device from the first identifier to the second identifier according to the preset identification information in response to the first operation, the method further includes: In response to the configuration operation, the first electronic device configures the preset identification mark to a specified character.

7. The method according to claim 1 or 2, characterized in that: The method further comprises: The first electronic device sends the preset identification information to the second electronic device, or receives the identification sent by the second electronic device, and is configured as the preset identification information.

8. A Bluetooth connection device, characterized in that: Applied in a first electronic device, the device comprises: An acquisition module, used for receiving a first operation on a preset key; a modification module, configured to modify, in response to the first operation, the Bluetooth identifier of the first electronic device from a first identifier to a second identifier according to preset identification information, wherein the Bluetooth identifier is used to identify the first electronic device; A sending module, used for sending the Bluetooth identifier; The connection module is used to connect with the second electronic device based on Bluetooth in response to a connection request of the second electronic device; the connection request is sent by the second electronic device after receiving a confirmation message of the Bluetooth identifier.

9. A terminal, characterized in that: include: Memory for storing computer programs; A processor, configured to run the computer program to implement the Bluetooth connection method according to any one of claims 1 to 7.

10. A readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the Bluetooth connection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for renaming Bluetooth modules and electronic equipment

    CN108228562A

  • Bluetooth device name changing method based on high-pass chip

    CN115604692A

  • Account management method and device

    CN115622791A