CN111669737A - Bluetooth device connection method and device and electronic device - Google Patents

Bluetooth device connection method and device and electronic device Download PDF

Info

Publication number
CN111669737A
CN111669737A CN202010463592.6A CN202010463592A CN111669737A CN 111669737 A CN111669737 A CN 111669737A CN 202010463592 A CN202010463592 A CN 202010463592A CN 111669737 A CN111669737 A CN 111669737A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
determining
target
knocking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010463592.6A
Other languages
Chinese (zh)
Inventor
周思源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010463592.6A priority Critical patent/CN111669737A/en
Publication of CN111669737A publication Critical patent/CN111669737A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a Bluetooth device connection method, a Bluetooth device connection device and an electronic device, and belongs to the technical field of communication, wherein the method comprises the following steps: determining Bluetooth connection authentication parameters; searching for a target Bluetooth device; and establishing Bluetooth connection with the target Bluetooth device. According to the Bluetooth device connection method, the user can be searched and connected by the electronic device by executing the operation of matching the authentication parameters on the target Bluetooth device, and the user does not need to execute a complicated Bluetooth operation process.

Description

Bluetooth device connection method and device and electronic device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a Bluetooth device connection method, a Bluetooth device connection device and electronic equipment.
Background
With the increasing popularity of bluetooth devices such as bluetooth headsets and bluetooth watches, users often have a need to connect bluetooth devices via electronic devices. Currently, when an electronic device is connected to a bluetooth device, a user enters a bluetooth setting interface, and manually selects a target bluetooth device from a bluetooth pairing list displayed in the bluetooth setting interface for pairing. In the actual use process, all the bluetooth devices which can be searched around the electronic device are displayed in the bluetooth pairing list, if two bluetooth devices with the same name are nearby, the user needs to select the name corresponding to the target bluetooth device from the two names by subjective judgment, and the problem of wrong selection of the target bluetooth device is easy to occur.
Therefore, the existing Bluetooth device connection method is complex to operate and easily causes the problem of mistaken selection of the target Bluetooth device.
Disclosure of Invention
The embodiment of the application aims to provide a Bluetooth device connection method, which can solve the problems that the existing Bluetooth device connection method is complicated in operation and target Bluetooth devices are easy to be selected by mistake.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present application provides a bluetooth device connection method, which is applied to an electronic device, where the method includes: determining Bluetooth connection authentication parameters, wherein the authentication parameters include at least one of: the shaking frequency, the knocking frequency and the knocking frequency; searching a target Bluetooth device, wherein the operation performed by the target Bluetooth device is matched with the authentication parameter; and establishing Bluetooth connection with the target Bluetooth device.
In a second aspect, an embodiment of the present application provides a bluetooth device connection method, which is applied to a bluetooth device, where the method includes: and under the condition that a user holds the Bluetooth device to tap a screen of the electronic device, adding the tapped tapping parameter into broadcast information, and sending the broadcast information.
In a third aspect, an embodiment of the present application provides a bluetooth device connection apparatus, which is applied to an electronic device, where the apparatus includes: a determining module, configured to determine a bluetooth connection authentication parameter, where the authentication parameter includes at least one of: the shaking frequency, the knocking frequency and the knocking frequency; a searching module, configured to search for a target bluetooth device, where an operation performed by the target bluetooth device matches the authentication parameter; and the connection module is used for establishing Bluetooth connection with the target Bluetooth equipment.
In a fourth aspect, an embodiment of the present application provides an apparatus for connecting a bluetooth device, where the apparatus is applied to a bluetooth device, and the apparatus includes: the adding module is used for adding the knocked knocking parameters into broadcast information under the condition that a user holds the Bluetooth device to knock a screen of the electronic device; and the sending module is used for sending the broadcast information.
In a fifth aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, determining Bluetooth connection authentication parameters; searching a target Bluetooth device which performs matching operation with the authentication parameters; the Bluetooth connection is established with the target Bluetooth device, and the user can be connected by the electronic device through the operation of executing the matching with the authentication parameters on the target Bluetooth device, so that the user does not need to execute a complicated Bluetooth operation process. In addition, because the electronic equipment automatically searches the target Bluetooth equipment, the problem of mistaken selection of the target Bluetooth equipment can be effectively avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a bluetooth device connection method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an authentication parameter display interface according to an embodiment of the present application;
fig. 3 is a block diagram showing a configuration of a bluetooth device connection apparatus according to an embodiment of the present application;
fig. 4 is a block diagram showing a configuration of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram showing a hardware structure of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram showing a configuration of another bluetooth device connection apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The bluetooth device connection method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a bluetooth device connection method according to an embodiment of the present application is shown.
The Bluetooth device connection method in the embodiment of the application comprises the following steps:
step 101: determining the Bluetooth connection authentication parameters.
Wherein the authentication parameters include at least one of: shaking times, knocking times and knocking frequency.
The Bluetooth device connection method shown in the embodiment of the application is applied to electronic equipment. And under the condition that the authentication parameter is the shaking times, the user can input the shaking times in the authentication parameter input interface, and the electronic equipment takes the shaking times input by the user as the authentication parameter of the Bluetooth connection. The number of shakes may also be randomly generated by the electronic device.
In the case that the authentication parameter is a tapping frequency, the tapping frequency may be preset by a user or preset in the system by a person skilled in the art, and may also be a tapping frequency detected during the process of tapping the screen of the electronic device by the bluetooth device. Correspondingly, the electronic equipment can determine the preset knocking frequency as a Bluetooth connection authentication parameter; or, determining the tapping frequency input by the user as the Bluetooth connection authentication parameter.
Under the condition that the authentication parameters are the tapping frequency and the tapping times, the authentication parameters can be preset by a user or preset in a system by a person skilled in the art, and can also be detected in the process that the user holds the Bluetooth device to tap the screen of the electronic device. And the Bluetooth device adds the knocked knocking parameters into the broadcast information and sends the broadcast information under the condition that the Bluetooth device is held by a user to knock the screen of the electronic device.
Step 102: searching for a target bluetooth device.
The authentication parameter is a verification password when the electronic equipment is connected with the target Bluetooth equipment. When the electronic equipment starts the Bluetooth function, an authentication parameter display interface shown in FIG. 2 is displayed on the screen, and the shaking times are displayed in the interface.
And under the condition that the authentication parameters are the knocking times and the knocking frequency, the knocking times and the knocking frequency can be displayed in an authentication parameter display interface, so that a user can knock the electronic equipment through the target Bluetooth equipment according to the displayed knocking times and the displayed knocking frequency.
The user can execute the operation matched with the authentication parameters on the target Bluetooth device, the motion sensor arranged on the target Bluetooth device identifies the operation of the target Bluetooth device, and the identified operation information is converted into the authentication parameters with a specific format and carried in the broadcast information to output the broadcast information. The Bluetooth device connecting device acquires the broadcast information of each Bluetooth device, and screens out the target Bluetooth device according to the content carried in each broadcast information.
Step 103: and establishing Bluetooth connection with the target Bluetooth device.
Optionally, the way of establishing bluetooth connection with the target bluetooth device is as follows:
firstly, scanning and positioning a target Bluetooth device; establishing temporary Bluetooth connection with a target Bluetooth device;
the broadcast information of the Bluetooth equipment carries Bluetooth equipment identification, and the electronic equipment can scan and position the target Bluetooth equipment according to the target Bluetooth equipment identification. The temporary bluetooth connection is used to obtain the address of the target bluetooth device.
Secondly, reading the address of the target Bluetooth device through temporary Bluetooth connection;
and finally, establishing Bluetooth connection with the target Bluetooth device based on the address of the target Bluetooth device.
This alternative approach enables accurate and fast connection establishment with the target bluetooth device.
The Bluetooth device connection method provided by the embodiment of the application determines Bluetooth connection authentication parameters; searching a target Bluetooth device which performs matching operation with the authentication parameters; the Bluetooth connection is established with the target Bluetooth device, and the user can be connected by the electronic device through the operation of executing the matching with the authentication parameters on the target Bluetooth device, so that the user does not need to execute a complicated Bluetooth operation process. In addition, because the electronic equipment automatically searches the target Bluetooth equipment, the problem of mistaken selection of the target Bluetooth equipment can be effectively avoided.
In an optional embodiment, in the case that the authentication parameter is a shaking number, after the step of determining the bluetooth connection authentication parameter, the shaking number may be further displayed in a preset interface, and the shaking number is used to prompt the user to perform a matching operation on the target bluetooth device.
The mode of showing the shaking times in the preset interface is more intuitive, and the user can still confirm the shaking times again from the content displayed in the preset interface even if forgetting the shaking times in the process of shaking the target Bluetooth device according to the shaking times, so that the probability of successful connection of the target Bluetooth device can be increased.
In an optional embodiment, in the case that the authentication parameter is the number of taps or the frequency of taps, before the step of searching for the target bluetooth device, the following operations may be further performed: detecting the number of times of knocking or the frequency of knocking on the screen under the condition that the screen is detected to be knocked; determining the detected knocking times or knocking frequency as a Bluetooth connection authentication parameter; starting a Bluetooth function of the electronic equipment; and then the step of searching for the target bluetooth device is performed.
The electronic equipment comprises a target Bluetooth device, a target Bluetooth device and an electronic equipment, wherein the target Bluetooth device is used for triggering the electronic equipment to be connected with the target Bluetooth device in a matching mode. Under the condition, the Bluetooth function of the electronic equipment is started again to search the target Bluetooth equipment in a targeted manner, and compared with the method for searching the target Bluetooth equipment in real time after starting, the method has the advantages that the searching load of the electronic equipment can be reduced, and the accuracy of the searching result is improved. In an alternative embodiment, the electronic device searches for the target bluetooth device as follows:
firstly, acquiring broadcast information of each Bluetooth device;
secondly, searching target broadcast information carrying authentication parameters from each broadcast information;
thirdly, determining the Bluetooth equipment which sends out the target broadcast information as target Bluetooth equipment;
and after the target Bluetooth equipment executes the operation matched with the authentication parameters, the authentication parameters are added into the target broadcast information and sent out. Can set up gravity sensor among the target bluetooth equipment, through the number of times of rocking, the number of times of knocking, the frequency of knocking of gravity sensor detection target bluetooth equipment, the target bluetooth equipment is broadcast in adding the authentication parameter that detects to broadcast information to electronic equipment selects target bluetooth equipment according to the broadcast information of each bluetooth equipment broadcast and pairs the connection. Certainly, the target bluetooth device may further include a touch panel, and when a user taps the target bluetooth device through the target bluetooth device, the touch panel may be contacted with the screen of the electronic device during touch control, so that the frequency of tapping the screen of the electronic device by the target bluetooth device may be detected through the touch panel.
This kind of mode through the broadcast information screening target bluetooth device of each bluetooth device, the search load that the simple operation can save electronic equipment.
It should be noted that, in the bluetooth device connection method provided in the embodiment of the present application, the execution main body may be an electronic device, or a bluetooth device connection module used for executing the bluetooth device connection method in the electronic device. In the embodiment of the present application, a method for a bluetooth device connection module to perform bluetooth device connection is taken as an example in the following, which illustrates a bluetooth device connection apparatus provided in the embodiment of the present application.
Fig. 3 is a block diagram of a bluetooth device connection apparatus for implementing an embodiment of the present application.
The bluetooth device connection apparatus 300 according to the embodiment of the present application includes:
a determining module 301, configured to determine a bluetooth connection authentication parameter, where the authentication parameter includes at least one of: the shaking frequency, the knocking frequency and the knocking frequency;
a searching module 302, configured to search for a target bluetooth device, where an operation performed by the target bluetooth device matches the authentication parameter;
a connection module 303, configured to establish a bluetooth connection with the target bluetooth device.
Optionally, the determining module includes:
the detection submodule is used for detecting the knocking times or knocking frequency of the screen under the condition that the screen is detected to be knocked;
the first determining submodule is used for determining the knocking times or the knocking frequency as the Bluetooth connection authentication parameters;
and the opening submodule is used for opening the Bluetooth function of the electronic equipment.
Optionally, the determining module includes:
the second determining submodule is used for determining the preset knocking frequency as a Bluetooth connection authentication parameter; alternatively, the first and second electrodes may be,
and the third determining submodule is used for determining the tapping frequency input by the user as the Bluetooth connection authentication parameter.
Optionally, the search module includes:
the acquisition submodule is used for acquiring the broadcast information of each Bluetooth device;
the searching submodule is used for searching target broadcast information carrying the authentication parameters from each piece of broadcast information;
and the fourth determining submodule is used for determining the Bluetooth device which sends the target broadcast information as the target Bluetooth device.
The Bluetooth device connection device provided by the embodiment of the application determines Bluetooth connection authentication parameters; searching a target Bluetooth device which performs matching operation with the authentication parameters; the Bluetooth connection is established with the target Bluetooth equipment, and the user can search for connection by the Bluetooth equipment connecting device by executing the operation of matching the authentication parameters on the target Bluetooth equipment without executing a complicated Bluetooth operation process. In addition, because the Bluetooth device connecting device automatically searches the target Bluetooth device, the problem of mistaken selection of the target Bluetooth device can be effectively avoided.
The bluetooth device connection apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The bluetooth device connection apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The bluetooth device connection apparatus provided in this embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the above-mentioned bluetooth device connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 510 is configured to determine a bluetooth connection authentication parameter, wherein the authentication parameter includes at least one of: the shaking frequency, the knocking frequency and the knocking frequency;
a radio frequency unit 501, configured to search for a target bluetooth device; and establishing Bluetooth connection with the target Bluetooth device, wherein the operation executed by the target Bluetooth device is matched with the authentication parameter.
In the embodiment of the application, the electronic equipment determines the Bluetooth connection authentication parameters; searching a target Bluetooth device which performs matching operation with the authentication parameters; the Bluetooth connection is established with the target Bluetooth device, and the user can be searched and connected by the electronic device by executing the operation of matching the authentication parameters on the target Bluetooth device, so that the user does not need to execute a complicated Bluetooth operation process. In addition, because the electronic equipment automatically searches the target Bluetooth equipment, the problem of mistaken selection of the target Bluetooth equipment can be effectively avoided.
Optionally, the processor 510, when determining the bluetooth connection authentication parameter, is specifically configured to: detecting the number of times of knocking or the frequency of knocking on a screen in the case of detecting that the screen is knocked; determining the knocking times or the knocking frequency as the Bluetooth connection authentication parameters; and starting the Bluetooth function of the electronic equipment.
Optionally, the processor 510 is specifically configured to, when determining the bluetooth connection authentication parameter: determining a preset tapping frequency as a Bluetooth connection authentication parameter; or, determining the tapping frequency input by the user as the Bluetooth connection authentication parameter.
Optionally, when the radio frequency unit 501 searches for a target bluetooth device, it is specifically configured to: acquiring broadcast information of each Bluetooth device;
a processor 510, configured to search for target broadcast information carrying the authentication parameter from each piece of broadcast information; and determining the Bluetooth equipment which sends the target broadcast information as target Bluetooth equipment.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the graphics processing Unit 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the embodiment of the bluetooth device connection method is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the bluetooth device connection method, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiment of the application also provides another Bluetooth device connection method, which is applied to the Bluetooth device, wherein the method comprises the following steps: and under the condition that the screen of the electronic equipment is tapped by the user holding the Bluetooth equipment, adding the tapped tapping parameter into the broadcast information, and sending the broadcast information.
According to the Bluetooth device connection method provided by the embodiment of the application, when a user holds the Bluetooth device to knock the screen of the electronic device, because the knocking forces are mutual, the knocking parameters detected by the Bluetooth device and the electronic device are the same as the knocking times and the knocking frequencies, the Bluetooth device adds the knocking parameters into the broadcast information to be sent, after the electronic device searches the broadcast information, and when the electronic device finds the knocking parameters which are the same as the knocking parameters detected by the electronic device, the Bluetooth device sending the broadcast information can be determined to be the paired target Bluetooth device, so that the pairing between the electronic device and the target Bluetooth device is completed.
Fig. 6 is a block diagram of a bluetooth device connection apparatus for implementing an embodiment of the present application.
The bluetooth device connecting apparatus 600 of the embodiment of the present application is applied to a bluetooth device, and the bluetooth device connecting apparatus 600 includes:
the adding module 601 is used for adding the knocking parameters of the knocking into the broadcast information when the condition that a user holds the Bluetooth device to knock the screen of the electronic device is received;
a sending module 602, configured to send the broadcast information.
According to the Bluetooth device connecting device provided by the embodiment of the application, when a user holds a Bluetooth device to tap a screen of an electronic device, since the force during tapping is mutual, tapping parameters such as tapping times and tapping frequency, detected by the Bluetooth device connecting device and the electronic device, contained in the Bluetooth device are the same, the tapping parameters are added into broadcast information and sent by the Bluetooth device connecting device, after the electronic device searches the broadcast information, when the electronic device finds the tapping parameters which are the same as the tapping parameters detected by the electronic device, the Bluetooth device which sends the broadcast information can be determined to be a paired target Bluetooth device, and therefore pairing between the electronic device and the target Bluetooth device is completed.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A Bluetooth device connection method is applied to an electronic device, and is characterized by comprising the following steps:
determining Bluetooth connection authentication parameters, wherein the authentication parameters include at least one of: the shaking frequency, the knocking frequency and the knocking frequency;
searching a target Bluetooth device, wherein the operation performed by the target Bluetooth device is matched with the authentication parameter;
and establishing Bluetooth connection with the target Bluetooth device.
2. The method of claim 1, wherein the step of determining the bluetooth connection authentication parameters comprises:
detecting the number of times of knocking or the frequency of knocking on a screen in the case of detecting that the screen is knocked;
determining the knocking times or the knocking frequency as the Bluetooth connection authentication parameters;
and starting the Bluetooth function of the electronic equipment.
3. The method of claim 1, wherein the step of determining the bluetooth connection authentication parameters comprises:
determining a preset tapping frequency as a Bluetooth connection authentication parameter; alternatively, the first and second electrodes may be,
and determining the tapping frequency input by the user as the Bluetooth connection authentication parameter.
4. The method of claim 1, wherein the step of searching for the target bluetooth device comprises:
acquiring broadcast information of each Bluetooth device;
searching target broadcast information carrying the authentication parameters from each broadcast information;
and determining the Bluetooth equipment which sends the target broadcast information as target Bluetooth equipment.
5. A Bluetooth device connection method is applied to a Bluetooth device, and is characterized by comprising the following steps: and under the condition that a user holds the Bluetooth device to tap a screen of the electronic device, adding the tapped tapping parameter into broadcast information, and sending the broadcast information.
6. A Bluetooth device connecting device is applied to an electronic device, and is characterized by comprising:
a determining module, configured to determine a bluetooth connection authentication parameter, where the authentication parameter includes at least one of: the shaking frequency, the knocking frequency and the knocking frequency;
a searching module, configured to search for a target bluetooth device, where an operation performed by the target bluetooth device matches the authentication parameter;
and the connection module is used for establishing Bluetooth connection with the target Bluetooth equipment.
7. The apparatus of claim 6, wherein the determining module comprises:
the detection submodule is used for detecting the knocking times or knocking frequency of the screen under the condition that the screen is detected to be knocked;
the first determining submodule is used for determining the knocking times or the knocking frequency as the Bluetooth connection authentication parameters;
and the opening submodule is used for opening the Bluetooth function of the electronic equipment.
8. The apparatus of claim 7, wherein the determining module comprises:
the second determining submodule is used for determining the preset knocking frequency as a Bluetooth connection authentication parameter; alternatively, the first and second electrodes may be,
and the third determining submodule is used for determining the tapping frequency input by the user as the Bluetooth connection authentication parameter.
9. The apparatus of claim 6, wherein the search module comprises:
the acquisition submodule is used for acquiring the broadcast information of each Bluetooth device;
the searching submodule is used for searching target broadcast information carrying the authentication parameters from each piece of broadcast information;
and the fourth determining submodule is used for determining the Bluetooth device which sends the target broadcast information as the target Bluetooth device.
10. A Bluetooth device connecting apparatus applied to a Bluetooth device, the apparatus comprising:
the adding module is used for adding the knocked knocking parameters into broadcast information under the condition that a user holds the Bluetooth device to knock a screen of the electronic device;
and the sending module is used for sending the broadcast information.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the bluetooth device connection method of any one of claims 1 to 4.
CN202010463592.6A 2020-05-27 2020-05-27 Bluetooth device connection method and device and electronic device Pending CN111669737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010463592.6A CN111669737A (en) 2020-05-27 2020-05-27 Bluetooth device connection method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010463592.6A CN111669737A (en) 2020-05-27 2020-05-27 Bluetooth device connection method and device and electronic device

Publications (1)

Publication Number Publication Date
CN111669737A true CN111669737A (en) 2020-09-15

Family

ID=72384976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010463592.6A Pending CN111669737A (en) 2020-05-27 2020-05-27 Bluetooth device connection method and device and electronic device

Country Status (1)

Country Link
CN (1) CN111669737A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399638A (en) * 2020-11-17 2021-02-23 Oppo广东移动通信有限公司 Communication connection establishing method, storage medium and equipment
CN112887952A (en) * 2021-01-28 2021-06-01 Oppo广东移动通信有限公司 Method and device for connecting Bluetooth device and terminal, and electronic device
CN112929860A (en) * 2021-01-21 2021-06-08 维沃移动通信有限公司 Bluetooth connection method and device and electronic equipment
CN113194450A (en) * 2021-05-06 2021-07-30 维沃移动通信有限公司 Bluetooth device management method and device
CN113347560A (en) * 2021-05-24 2021-09-03 荣耀终端有限公司 Bluetooth connection method, electronic device and storage medium
CN113473435A (en) * 2021-08-19 2021-10-01 Oppo广东移动通信有限公司 Bluetooth-based equipment connection method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714744A (en) * 2019-02-28 2019-05-03 深圳市空联技术有限公司 A kind of device pairing method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714744A (en) * 2019-02-28 2019-05-03 深圳市空联技术有限公司 A kind of device pairing method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399638A (en) * 2020-11-17 2021-02-23 Oppo广东移动通信有限公司 Communication connection establishing method, storage medium and equipment
WO2022105342A1 (en) * 2020-11-17 2022-05-27 Oppo广东移动通信有限公司 Communicational connection establishment method, storage medium and device
CN112929860A (en) * 2021-01-21 2021-06-08 维沃移动通信有限公司 Bluetooth connection method and device and electronic equipment
WO2022156598A1 (en) * 2021-01-21 2022-07-28 维沃移动通信有限公司 Bluetooth connection method and apparatus, and electronic device
CN112929860B (en) * 2021-01-21 2023-09-19 维沃移动通信有限公司 Bluetooth connection method and device and electronic equipment
CN112887952A (en) * 2021-01-28 2021-06-01 Oppo广东移动通信有限公司 Method and device for connecting Bluetooth device and terminal, and electronic device
CN113194450A (en) * 2021-05-06 2021-07-30 维沃移动通信有限公司 Bluetooth device management method and device
CN113194450B (en) * 2021-05-06 2023-08-04 维沃移动通信有限公司 Bluetooth equipment management method and device
CN113347560A (en) * 2021-05-24 2021-09-03 荣耀终端有限公司 Bluetooth connection method, electronic device and storage medium
CN113347560B (en) * 2021-05-24 2022-05-24 荣耀终端有限公司 Bluetooth connection method, electronic device and storage medium
CN113473435A (en) * 2021-08-19 2021-10-01 Oppo广东移动通信有限公司 Bluetooth-based equipment connection method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111669737A (en) Bluetooth device connection method and device and electronic device
CN106203459B (en) Picture processing method and device
CN111884908B (en) Contact person identification display method and device and electronic equipment
CN107566909B (en) Barrage-based video content searching method and user terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109495638B (en) Information display method and terminal
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112083854A (en) Application program running method and device
CN108391253B (en) application program recommendation method and mobile terminal
CN111813299A (en) Information sharing method, information sharing device and electronic equipment
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN112929860A (en) Bluetooth connection method and device and electronic equipment
CN110933772A (en) Connection method of wireless device, mobile terminal and computer readable storage medium
CN111813305A (en) Application program starting method and device
CN113836089A (en) Application program display method and device, electronic equipment and readable storage medium
CN105320858B (en) Method and device for rapidly displaying application icons
CN110891265B (en) Wireless connection control method and device, mobile terminal and storage medium
CN113709306A (en) Session processing method and device and electronic equipment
CN112486387A (en) Application program control method and device
CN110543276B (en) Picture screening method and terminal equipment thereof
CN112235412A (en) Message processing method and device
CN112181559A (en) Interface display method and device and electronic equipment
CN110851202A (en) Mobile terminal function page starting method and device, mobile terminal and storage medium
CN113138702B (en) Information processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200915