CN112929860B - Bluetooth connection method and device and electronic equipment - Google Patents

Bluetooth connection method and device and electronic equipment Download PDF

Info

Publication number
CN112929860B
CN112929860B CN202110081266.3A CN202110081266A CN112929860B CN 112929860 B CN112929860 B CN 112929860B CN 202110081266 A CN202110081266 A CN 202110081266A CN 112929860 B CN112929860 B CN 112929860B
Authority
CN
China
Prior art keywords
bluetooth
spatial
devices
bluetooth devices
target
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.)
Active
Application number
CN202110081266.3A
Other languages
Chinese (zh)
Other versions
CN112929860A (en
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 CN202110081266.3A priority Critical patent/CN112929860B/en
Publication of CN112929860A publication Critical patent/CN112929860A/en
Priority to PCT/CN2022/071955 priority patent/WO2022156598A1/en
Application granted granted Critical
Publication of CN112929860B publication Critical patent/CN112929860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The application discloses a Bluetooth connection method, a Bluetooth connection device and electronic equipment, wherein the method comprises the following steps: acquiring the spatial postures of the scanned M Bluetooth devices; bluetooth connection with N Bluetooth devices in the M Bluetooth devices; and the spatial postures of the N Bluetooth devices are matched with the first spatial posture. The embodiment of the application can reduce the operation time of Bluetooth connection and rapidly realize Bluetooth connection.

Description

Bluetooth connection method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a Bluetooth connection method, a Bluetooth connection device and electronic equipment.
Background
Along with the rapid development of mobile communication and intelligent devices, the types of intelligent devices are more and more, and the intelligent devices comprise various electronic devices such as mobile phones, watches, bracelets, intelligent sound equipment and the like. Communication is often required between different electronic devices to perform information interaction such as instruction control and data transmission, and bluetooth is widely used in various electronic devices as a mature communication mode.
When the Bluetooth connection is performed, if the Bluetooth devices in the environment where the main Bluetooth device is located are relatively more, a large amount of identification information of the Bluetooth devices can appear in the Bluetooth scanning interface of the main Bluetooth device. Since the user may not know the identification information of the bluetooth device to be connected, bluetooth connection can only be attempted one by one based on the displayed identification information of the bluetooth device in the bluetooth scan interface, resulting in a longer operation time of bluetooth connection.
Disclosure of Invention
The embodiment of the application aims to provide a Bluetooth connection method, a Bluetooth connection device and electronic equipment, which can solve the problem that the Bluetooth connection operation time is relatively long in the prior art.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a bluetooth connection method, including:
acquiring the spatial postures of the scanned M Bluetooth devices;
bluetooth connection with N Bluetooth devices in the M Bluetooth devices;
and the spatial postures of the N Bluetooth devices are matched with the first spatial posture.
In a second aspect, an embodiment of the present application provides a bluetooth connection device, including:
the acquisition module is used for acquiring the spatial attitudes of the scanned M Bluetooth devices;
the Bluetooth connection module is used for being connected with N Bluetooth devices in the M Bluetooth devices in a Bluetooth mode;
and the spatial postures of the N Bluetooth devices are matched with the first spatial posture.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth 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 where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the spatial postures of M scanned Bluetooth devices are obtained; bluetooth connection with N Bluetooth devices in the M Bluetooth devices; and the spatial postures of the N Bluetooth devices are matched with the first spatial posture. Like this, can carry out bluetooth with the bluetooth equipment of first space gesture and be connected to can reduce the number of times that the user tried to connect bluetooth equipment, and then reduce bluetooth's operating time, realize bluetooth fast and connect.
Drawings
Fig. 1 is a flowchart of a bluetooth connection method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a Bluetooth scanning interface without filter conditions;
FIG. 3 is a schematic diagram of a Bluetooth scanning interface with filter conditions set;
FIG. 4 is a schematic diagram of a Bluetooth scanning interface showing a selected window;
fig. 5 is a block diagram of a bluetooth connection device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following describes in detail the bluetooth connection provided by the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a bluetooth connection method according to an embodiment of the present application, as shown in fig. 1, including the following steps:
step 101, acquiring the spatial attitudes of the scanned M Bluetooth devices.
Wherein M is a positive integer.
In this step, generally, when the user triggers the bluetooth control, the triggering device or the electronic device (hereinafter may be collectively referred to as a master bluetooth device) acquires the spatial pose of the bluetooth device that can be scanned in the periphery, and of course, when the bluetooth control is in the on state, the spatial pose of the bluetooth device that can be scanned in the periphery may also be acquired in real time or periodically. The bluetooth control means a control for turning on or off a bluetooth function.
The M bluetooth devices refer to all electronic devices with bluetooth functions being turned on, which can be scanned by the master bluetooth device in the current environment, and may be referred to as slave bluetooth devices.
The spatial pose of the bluetooth device may reflect the state of motion of the bluetooth device in space, which may generally include rest and motion, as well as the state of placement of the bluetooth device in space. The Bluetooth device can be in any of a flat, inclined, horizontal, vertical or the like according to the placement state of the Bluetooth device when the Bluetooth device is stationary. Depending on the placement of the bluetooth device during movement, it may be one of shaking and rotating.
There are two ways for the master bluetooth device to obtain the spatial pose of the slave bluetooth device, which are described in detail below.
Specifically, the step 101 specifically includes:
receiving target information broadcast by the M Bluetooth devices; the target information comprises the spatial postures of the M Bluetooth devices; or alternatively, the process may be performed,
the spatial poses of the scanned M bluetooth devices are measured.
The method comprises the steps of receiving target information broadcast by M Bluetooth devices, wherein the target information broadcast by M Bluetooth devices is a first mode for acquiring the spatial gesture of the slave Bluetooth devices, and the essence of the acquisition mode is that the spatial gesture of the slave Bluetooth devices obtained by an internal measurement mode is acquired. And the second mode of measuring the spatial attitudes of the M Bluetooth devices is to acquire the spatial attitudes of the slave Bluetooth devices, wherein the essence of the acquisition mode is that the master Bluetooth device acquires the spatial attitudes of the slave Bluetooth devices through an external measurement mode.
The first mode is specifically implemented in that a bluetooth device (whether a master bluetooth device or a slave bluetooth device) may be built-in with a module for measuring a spatial gesture, for example, a gyroscope, an accelerometer, a magnetic sensor, etc., and the bluetooth device may recognize its spatial gesture through the built-in module.
For example, a gyroscope and an accelerometer are arranged in the Bluetooth device, whether the Bluetooth device is in a static state or in motion can be judged through the accelerometer and the gyroscope, when the variance of the accelerometer is smaller than a threshold value or the angular velocity of the gyroscope is smaller than the threshold value, the Bluetooth device is identified to be in a static state, and when the Bluetooth device is static, the Bluetooth device can be identified to be in one of a flat state, an inclined state, a horizontal state and a vertical state according to the value of the accelerometer. When the Bluetooth device is not stationary, namely moving, the Bluetooth device can be identified to be in one of shaking and rotating according to the value of the gyroscope.
After the bluetooth device recognizes its own spatial pose, it may send its own spatial pose while broadcasting the message. Accordingly, the master bluetooth device may receive a target message broadcast by the slave bluetooth device, and obtain the spatial pose of the slave bluetooth device from the target message.
The second mode is specifically implemented, where the bluetooth device may use a specific camera module to track and record the scanned bluetooth device, so as to measure the spatial pose of other bluetooth devices. Alternatively, the bluetooth device may also use a probe to measure the spatial pose of other bluetooth devices within range.
It should be noted that the master bluetooth device and the slave bluetooth device described in the embodiments of the present application are only a relative concept, and in another scenario, the master bluetooth device may also be used as a slave bluetooth device of other bluetooth devices, which is not described herein.
Here, the master bluetooth device can recognize the space gesture of the slave bluetooth device in various modes, and the acquisition mode of the space gesture of the bluetooth device is flexible, thereby laying a foundation for the subsequent screening of the bluetooth device displayed in the bluetooth scanning interface.
Step 102, bluetooth connection is performed with N bluetooth devices in the M bluetooth devices.
And the spatial postures of the N Bluetooth devices are matched with the first spatial posture.
The first spatial gesture may be a preset spatial gesture, a spatial gesture selected by a user, or a spatial gesture of the main bluetooth device, which is not specifically limited herein.
The N bluetooth devices may be some or all bluetooth devices whose spatial poses match the first spatial pose. Q Bluetooth devices with the spatial gesture matched with the first spatial gesture can be obtained from the M Bluetooth devices, and Bluetooth connection is carried out on the Q Bluetooth devices and N Bluetooth devices in the Q Bluetooth devices, wherein Q is greater than or equal to N.
When the bluetooth is connected, the bluetooth device may be automatically connected to the N bluetooth devices, or may be connected to the N bluetooth devices according to the input of the user when the input of the user is received, that is, the bluetooth device is actively connected to the N bluetooth devices, which is not specifically limited herein.
In this embodiment, the spatial attitudes of the scanned M bluetooth devices are obtained; bluetooth connection with N Bluetooth devices in the M Bluetooth devices; and the spatial postures of the N Bluetooth devices are matched with the first spatial posture. Like this, can carry out bluetooth with the bluetooth equipment of first space gesture and be connected to can reduce the number of times that the user tried to connect bluetooth equipment, and then reduce bluetooth's operating time, realize bluetooth fast and connect.
Optionally, the step 102 may specifically include:
and carrying out Bluetooth connection on N Bluetooth devices corresponding to the target identification information, wherein the target identification information is the identification information displayed in a Bluetooth scanning interface, and the identification information displayed in the Bluetooth scanning interface is the identification information of the Bluetooth devices with space postures matched with the first space postures in the M Bluetooth devices.
Optionally, the step 102 may specifically include:
and carrying out Bluetooth connection on N Bluetooth devices corresponding to the target options, wherein the target options are options which are selected from options displayed on a Bluetooth scanning interface and used for indicating the first space gesture, and the options displayed on the Bluetooth scanning interface are used for indicating the space gestures of the M Bluetooth devices.
In this embodiment, there may be two ways to connect bluetooth with N bluetooth devices of the M bluetooth devices. The first mode may be bluetooth connection with N bluetooth devices corresponding to the target identification information according to identification information of the bluetooth devices, and the second mode may be bluetooth connection with N bluetooth devices corresponding to the target option according to options of the bluetooth devices, where the options of the bluetooth devices may be used to indicate spatial attitudes of the M bluetooth devices.
Specifically, for the first bluetooth connection manner with N bluetooth devices of the M bluetooth devices, a filtering condition may be set, where the filtering condition may be used to filter out a target bluetooth device that meets a condition. The filtering condition can represent the Bluetooth equipment for filtering to obtain a certain spatial posture, and can also represent the Bluetooth equipment for filtering to remove a certain spatial posture so as to obtain the Bluetooth equipment with other spatial postures.
Regardless of the filtering condition, based on which the first spatial pose may be ultimately obtained. For example, if the filtering condition characterizes the bluetooth device that filters to obtain a certain spatial pose, the first spatial pose is the spatial pose in the filtering condition. For another example, if the filtering condition characterizes the bluetooth device with a certain spatial gesture removed by filtering to obtain bluetooth devices with other spatial gestures, the first spatial gesture is a spatial gesture except the spatial gesture in the filtering condition in P preset spatial gestures, and P is a positive integer.
After the first space gesture is obtained, the scanned space gesture of each Bluetooth device can be compared with the first space gesture, if the scanned space gesture is matched with the first space gesture, the Bluetooth device is the target Bluetooth device, and the identification information of the target Bluetooth device can be displayed in a Bluetooth scanning interface. If the identification information is not matched with the Bluetooth scanning interface, the identification information of the Bluetooth scanning interface is not displayed on the Bluetooth scanning interface. Wherein each of the N bluetooth devices is a target bluetooth device.
As shown in fig. 2 and fig. 3, fig. 2 is a bluetooth scanning interface without a filtering condition, and fig. 3 is a bluetooth scanning interface with a filtering condition, it can be seen from fig. 2 and fig. 3 that, after the filtering condition is set, the number of bluetooth devices displayed on the bluetooth scanning interface is greatly reduced relative to the bluetooth scanning interface without the filtering condition, so that the number of times of attempting bluetooth connection can be greatly reduced.
In fig. 3, the bluetooth scanning interface may display identification information of the target bluetooth device, where the identification information of the target bluetooth device may be a bluetooth name and/or an identification number of the target bluetooth device.
Then, bluetooth connection can be performed with N bluetooth devices corresponding to the target identification information. The target identification information may be at least one of identification information of the target bluetooth device.
The target identification information may be any one of identification information of the target bluetooth device, or may be identification information selected by a user from among the identification information of the target bluetooth device. In the case that the identification information of the target bluetooth device includes a plurality of identification information of the target bluetooth device, that is, the bluetooth scanning interface includes identification information of a plurality of target bluetooth devices, the target identification information may be some or all of the identification information of the plurality of target bluetooth devices.
The bluetooth connection modes can include two types, and the first type can be that the N bluetooth devices corresponding to the target identification information can perform automatic bluetooth connection under the condition that the identification information of the target bluetooth device is displayed in the bluetooth scanning interface.
The master bluetooth device may preset the number of connectable slave bluetooth devices, and in the case that the number of target bluetooth devices displayed in the bluetooth scanning interface is less than or equal to the number of connectable slave bluetooth devices, the master bluetooth device may perform automatic bluetooth connection with target bluetooth devices corresponding to all identification information displayed in the bluetooth scanning interface, where in this application scenario, the target identification information is all identification information in the identification information displayed in the bluetooth scanning interface.
In the case that the data of the target bluetooth device displayed in the bluetooth scan interface is greater than the number of connectable slave bluetooth devices, the master bluetooth device may perform automatic bluetooth connection with the target bluetooth device corresponding to the partial identification information displayed in the bluetooth scan interface. The number of the partial identification information can be the number of the slave Bluetooth devices which can be connected with the master Bluetooth device, the partial identification information can be the identification information which is randomly selected by the master Bluetooth device, and in the application scene, the target identification information can be any one or any several identification information of a plurality of identification information displayed in the Bluetooth scanning interface. For example, if the number of slave bluetooth devices to which the master bluetooth device is connectable is 1, that is, N is 1, the target identification information may be any one of a plurality of identification information displayed in the bluetooth scanning interface.
Of course, the master bluetooth device may also perform automatic bluetooth connection with the target bluetooth device according to the distance from the target bluetooth device, for example, perform automatic bluetooth connection with one or more target bluetooth devices closest to each other in order of distance from the near to the far. Under the application scene, according to the arrangement sequence of the distances from the main Bluetooth device to the target Bluetooth devices from near to far, the target identification information can be the identification information of N target Bluetooth devices which are arranged at the front distance from the main Bluetooth device, and N is smaller than the number of the slave Bluetooth devices which can be connected with the main Bluetooth device.
And in the second application scenario, the target bluetooth device corresponding to the target identification information performs bluetooth connection when receiving the selection input of the target identification information in the identification information of the target bluetooth device, where the target identification information is the identification information selected by the user in the identification information of the target bluetooth device.
Because the user knows the space gesture of the Bluetooth device to be connected, or the user can place the Bluetooth device to be connected in a certain space state, the target Bluetooth device meeting the conditions can be obtained through the space gesture filtering of the Bluetooth device, even if the user does not know the identification information of the Bluetooth device to be connected, the number of times of trying Bluetooth connection can be reduced by reducing the Bluetooth devices in the Bluetooth scanning interface.
Aiming at the first mode of Bluetooth connection with N Bluetooth devices in M Bluetooth devices, by acquiring the space gesture of the scanned Bluetooth devices and only displaying the Bluetooth devices with the space gesture matched with the first space gesture in the Bluetooth scanning interface, the Bluetooth devices displayed in the Bluetooth scanning interface can be reduced, so that the frequency of the user attempting to connect the Bluetooth devices can be reduced, the operation time of Bluetooth connection is further shortened, and Bluetooth connection is realized rapidly.
For the second bluetooth connection manner with N bluetooth devices of the M bluetooth devices, M options may be displayed in the bluetooth scanning interface, where each option may be used to indicate a spatial pose of the bluetooth device.
In the case that M options of the M bluetooth devices are displayed in the bluetooth scanning interface, in order to correspond each option to a bluetooth device, identification information of the bluetooth device may be displayed in association with the option, that is, the option of the bluetooth device may be displayed at a position corresponding to the display position of the identification information of the bluetooth device. The options can indicate the spatial gesture of the Bluetooth device corresponding to the options, and each option displayed in the Bluetooth scanning interface can be used as a control for a user to select.
For example, the spatial posture of the device 1 is shaking, the spatial posture of the device 2 is horizontal, the spatial posture of the device 3 is horizontal, the spatial posture of the device 4 is vertical, the spatial posture of the device 5 is inclined, and the spatial posture of the device 6 is rotating.
And the user can click on a target option in the M options to select the slave Bluetooth device with the first space gesture, and correspondingly, under the condition that the selection operation of the target option in the M options is received, the master Bluetooth device can carry out Bluetooth connection with the Bluetooth device corresponding to the target option.
Aiming at a second Bluetooth connection mode with N Bluetooth devices in the M Bluetooth devices, acquiring the spatial attitudes of the scanned M Bluetooth devices; displaying M options of the M Bluetooth devices in a Bluetooth scanning interface, and carrying out Bluetooth connection with the Bluetooth device corresponding to the target option under the condition that the selection operation of the target option in the M options is received; the M options are for indicating spatial poses of the M bluetooth devices. Therefore, the user can select the target option indicating the first space gesture according to the space gesture of the Bluetooth device indicated by the option displayed in the Bluetooth scanning interface, so that the main Bluetooth device and the Bluetooth device with the first space gesture are in Bluetooth connection, the frequency of the user attempting to connect the Bluetooth device can be reduced, the operation time of Bluetooth connection is further shortened, and Bluetooth connection is realized rapidly.
Optionally, before the bluetooth connection is performed on the N bluetooth devices corresponding to the target identification information, the method further includes:
displaying a selection window under the condition that a first input to a first target control is received; the selection window comprises P preset spatial postures of Bluetooth equipment, wherein P is a positive integer;
determining the first spatial pose if a second input to a second spatial pose of the P preset spatial poses is received; the first spatial gesture is the second spatial gesture, or the first spatial gesture is a spatial gesture except the second spatial gesture in the P preset spatial gestures.
The first target control is used for setting the first space gesture.
Optionally, the first target control is a switch control in the bluetooth scan interface, and displaying a selection window when receiving a first input to the first target control includes:
and displaying the selection window in the Bluetooth scanning interface under the condition that the touch input for starting the switch control is received.
The embodiment mainly describes a setting process of the filtering condition, wherein the filtering condition of the bluetooth device may be preset in a setting interface, or may be set in real time in a bluetooth scanning interface. When preset in the setting interface, the first target control can be located in the setting interface, and when set in real time in the Bluetooth scanning interface, the first target control can be located in the Bluetooth scanning interface.
The first input may be a voice input, a gesture input, or a touch input, where the touch input may be a single click operation, a double click operation, or a sliding operation. The second input may be a voice input, a gesture input, or a touch input, where the touch input may be a single click operation, a double click operation, or a sliding operation.
The first target control may be a switch control, and of course, may also be other types of controls, and in the following embodiments, the switch control in the bluetooth scanning interface will be described in detail.
The first target control is the "intelligent filtering switch" control in fig. 2 and 3, the "intelligent filtering switch" control comprises two states, the first state is the off state, as shown in fig. 2, after the "intelligent filtering switch" control is turned off, the scanned bluetooth device cannot be filtered, so that the bluetooth devices scanned by the main bluetooth device are all displayed in the bluetooth scanning interface.
The second state is an on state, and when the user performs a clicking operation on the "intelligent filtering switch" control to open the filtering condition setting function, a selection window is displayed in the bluetooth scanning interface, where P preset spatial poses of the bluetooth device are displayed, where the preset spatial poses are preset spatial poses, such as rest, shake, or lie, as shown in fig. 4.
If the user performs a selection operation on a second spatial gesture among the P preset spatial gestures, and performs a determination operation, the user may exit the selection window, where the determination operation may be an operation of clicking a screen blank. Accordingly, the master bluetooth device may determine the filtering condition based on the second spatial pose selected by the user's selection operation (the second spatial pose selected by the user is shaking as shown in fig. 4). The number of the second spatial gestures may be 1 or more, which is not particularly limited herein.
The filtering condition may include a second spatial gesture, and according to the foregoing description, a first spatial gesture may be determined according to the second spatial gesture in the filtering condition, where the first spatial gesture is the second spatial gesture, or the first spatial gesture is a spatial gesture other than the second spatial gesture among the P preset spatial gestures.
Of course, the user may not select any spatial gesture in the selection window, i.e., the user does not set any filtering conditions, in which case the master bluetooth device will display all scanned bluetooth devices in the bluetooth scanning interface.
Optionally, after determining the first spatial pose in a case where a second input to a second spatial pose of the P preset spatial poses is received, the method further includes:
displaying a second target control in the Bluetooth scanning interface; the second target control is used for displaying the first space gesture;
and displaying the selection window in the Bluetooth scanning interface to reset the first space gesture under the condition that a third input to the second target control is received.
The third input may be a voice input, a gesture input, or a touch input, where the touch input may be a single click operation, a double click operation, or a sliding operation.
After the filtering conditions are set, in order to enable the user to intuitively know the set filtering conditions, and facilitate the user to reset the filtering conditions, a second target control can be displayed in the Bluetooth scanning interface, and the second target control is used for displaying the first spatial gesture. The "shake" control shown in fig. 3 is the second target control.
If the user clicks the second target control, the main Bluetooth device receives a clicking operation on the second target control, and the selection window is redisplayed on the Bluetooth scanning interface to reset the filtering condition, namely the first space gesture.
In this embodiment, the user may trigger setting of the filtering condition through the first target control according to the spatial gesture of the bluetooth device, and may set the first target control in the bluetooth scanning interface, so as to set the filtering condition in real time while bluetooth scanning. And the filtering conditions can be displayed in the Bluetooth scanning interface in the form of a control, so that a user can intuitively know the set filtering conditions, and meanwhile, the filtering conditions can be reset based on the control, and the setting of the filtering conditions is simple and flexible.
It should be noted that, in the bluetooth connection method provided in the embodiment of the present application, the execution body may be a bluetooth connection device, or a control module in the bluetooth connection device for executing the bluetooth connection method. In the embodiment of the application, a bluetooth connection device is taken as an example to execute a bluetooth connection method, and the bluetooth connection device provided by the embodiment of the application is described.
Referring to fig. 5, fig. 5 is a block diagram of a bluetooth connection device according to an embodiment of the present application, and as shown in fig. 5, a bluetooth connection device 500 includes:
an acquiring module 501, configured to acquire spatial attitudes of the scanned M bluetooth devices;
the bluetooth connection module 502 is configured to bluetooth connect with N bluetooth devices of the M bluetooth devices;
and the spatial postures of the N Bluetooth devices are matched with the first spatial posture.
Optionally, the bluetooth connection module 502 includes:
the first Bluetooth connection unit is used for carrying out Bluetooth connection on N pieces of Bluetooth equipment corresponding to target identification information, the target identification information is identification information displayed in a Bluetooth scanning interface, and the identification information displayed in the Bluetooth scanning interface is identification information of Bluetooth equipment with space gesture matched with the first space gesture in the M pieces of Bluetooth equipment.
Optionally, the bluetooth connection module 502 includes:
the second Bluetooth connection unit is used for carrying out Bluetooth connection on N Bluetooth devices corresponding to target options, the target options are options which are selected from options displayed on a Bluetooth scanning interface and used for indicating the first space gesture, and the options displayed on the Bluetooth scanning interface are used for indicating the space gestures of the M Bluetooth devices.
Optionally, the apparatus further includes:
the display module is used for displaying a selection window under the condition that a first input to a first target control is received; the selection window comprises P preset spatial postures of Bluetooth equipment, wherein P is a positive integer;
a determining module, configured to determine the first spatial pose if a second input to a second spatial pose of the P preset spatial poses is received; the first spatial gesture is the second spatial gesture, or the first spatial gesture is a spatial gesture except the second spatial gesture in the P preset spatial gestures.
Optionally, the obtaining module 501 includes:
a receiving unit, configured to receive target information broadcast by the M bluetooth devices; the target information comprises the spatial postures of the M Bluetooth devices;
and the measuring unit is used for measuring the spatial attitudes of the scanned M Bluetooth devices.
In this embodiment, the acquiring module 501 acquires the spatial attitudes of the scanned M bluetooth devices; the bluetooth connection module 502 is in bluetooth connection with N bluetooth devices of the M bluetooth devices; and the spatial postures of the N Bluetooth devices are matched with the first spatial posture. Like this, can carry out bluetooth with the bluetooth equipment of first space gesture and be connected to can reduce the number of times that the user tried to connect bluetooth equipment, and then reduce bluetooth's operating time, realize bluetooth fast and connect.
The Bluetooth connection device in the embodiment of the application can be a device, and also can be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The bluetooth connection device in the embodiment of the application may be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The bluetooth connection device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a description thereof will not be repeated here.
Optionally, referring to fig. 6, fig. 6 is a block diagram of an electronic device provided by the embodiment of the present application, as shown in fig. 6, the embodiment of the present application further provides an electronic device, which includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction implements each process of the above bluetooth connection method embodiment when executed by the processor 601, and the process can achieve the same technical effect, and is not repeated herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 710 is configured to obtain spatial poses of the scanned M bluetooth devices; bluetooth connection with N Bluetooth devices in the M Bluetooth devices;
and the spatial postures of the N Bluetooth devices are matched with the first spatial posture.
In the embodiment of the present application, the processor 710 obtains the spatial attitudes of the scanned M bluetooth devices; bluetooth connection with N Bluetooth devices in the M Bluetooth devices; and the spatial postures of the N Bluetooth devices are matched with the first spatial posture. Like this, can carry out bluetooth with the bluetooth equipment of first space gesture and be connected to can reduce the number of times that the user tried to connect bluetooth equipment, and then reduce bluetooth's operating time, realize bluetooth fast and connect.
Optionally, the processor 710 is further configured to perform bluetooth connection with N bluetooth devices corresponding to the target identification information, where the target identification information is identification information displayed in a bluetooth scanning interface, and the identification information displayed in the bluetooth scanning interface is identification information of a bluetooth device having a spatial gesture matching the first spatial gesture among the M bluetooth devices.
Optionally, the processor 710 is further configured to perform bluetooth connection with N bluetooth devices corresponding to a target option, where the target option is an option indicating a first spatial gesture selected from options displayed on a bluetooth scan interface, and the option displayed on the bluetooth scan interface is used to indicate spatial gestures of the M bluetooth devices.
Optionally, the display unit 706 is configured to display a selection window when a first input to the first target control is received; the selection window comprises P preset spatial postures of Bluetooth equipment, wherein P is a positive integer;
the processor 710 is further configured to determine the first spatial pose if a second input to a second spatial pose of the P preset spatial poses is received; the first spatial gesture is the second spatial gesture, or the first spatial gesture is a spatial gesture except the second spatial gesture in the P preset spatial gestures.
Optionally, the processor 710 is further configured to receive target information broadcast by the M bluetooth devices; the target information comprises the spatial postures of the M Bluetooth devices; alternatively, the spatial poses of the scanned M bluetooth devices are measured.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 710 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements the processes of the bluetooth connection method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the Bluetooth connection method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A bluetooth connection method, comprising:
acquiring the spatial postures of the scanned M Bluetooth devices;
receiving target information broadcast by the M Bluetooth devices; the target information comprises the spatial postures of the M Bluetooth devices, and the spatial postures reflect the placement state of the Bluetooth devices in space;
bluetooth connection with N Bluetooth devices in the M Bluetooth devices;
wherein M and N are positive integers, and the spatial postures of the N Bluetooth devices are matched with the first spatial postures;
the bluetooth connection with N bluetooth devices of the M bluetooth devices includes:
and carrying out Bluetooth connection on N Bluetooth devices corresponding to the target options, wherein the target options are options which are selected from options displayed on a Bluetooth scanning interface and used for indicating the first space gesture, and the options displayed on the Bluetooth scanning interface are used for indicating the space gestures of the M Bluetooth devices.
2. The method of claim 1, wherein said bluetooth connection with N bluetooth devices of said M bluetooth devices comprises:
and carrying out Bluetooth connection on N Bluetooth devices corresponding to the target identification information, wherein the target identification information is the identification information displayed in a Bluetooth scanning interface, and the identification information displayed in the Bluetooth scanning interface is the identification information of the Bluetooth devices with space postures matched with the first space postures in the M Bluetooth devices.
3. The method according to claim 2, wherein before bluetooth connection is performed by the N bluetooth devices corresponding to the target identification information, the method further comprises:
displaying a selection window under the condition that a first input to a first target control is received; the selection window comprises P preset spatial postures of Bluetooth equipment, wherein P is a positive integer;
determining the first spatial pose if a second input to a second spatial pose of the P preset spatial poses is received; the first spatial gesture is the second spatial gesture, or the first spatial gesture is a spatial gesture except the second spatial gesture in the P preset spatial gestures.
4. The method of claim 1, wherein the acquiring the spatial poses of the scanned M bluetooth devices comprises:
the spatial poses of the scanned M bluetooth devices are measured.
5. A bluetooth connection device, comprising:
the acquisition module is used for acquiring the spatial attitudes of the scanned M Bluetooth devices;
a receiving unit, configured to receive target information broadcast by the M bluetooth devices; the target information comprises the spatial postures of the M Bluetooth devices, and the spatial postures reflect the placement state of the Bluetooth devices in space;
the Bluetooth connection module is used for being connected with N Bluetooth devices in the M Bluetooth devices in a Bluetooth mode;
wherein M and N are positive integers, and the spatial postures of the N Bluetooth devices are matched with the first spatial postures;
the Bluetooth connection module comprises:
the second Bluetooth connection unit is used for carrying out Bluetooth connection on N Bluetooth devices corresponding to target options, the target options are options which are selected from options displayed on a Bluetooth scanning interface and used for indicating the first space gesture, and the options displayed on the Bluetooth scanning interface are used for indicating the space gestures of the M Bluetooth devices.
6. The apparatus of claim 5, wherein the bluetooth connection module comprises:
the first Bluetooth connection unit is used for carrying out Bluetooth connection on N pieces of Bluetooth equipment corresponding to target identification information, the target identification information is identification information displayed in a Bluetooth scanning interface, and the identification information displayed in the Bluetooth scanning interface is identification information of Bluetooth equipment with space gesture matched with the first space gesture in the M pieces of Bluetooth equipment.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the display module is used for displaying a selection window under the condition that a first input to a first target control is received; the selection window comprises P preset spatial postures of Bluetooth equipment, wherein P is a positive integer;
a determining module, configured to determine the first spatial pose if a second input to a second spatial pose of the P preset spatial poses is received; the first spatial gesture is the second spatial gesture, or the first spatial gesture is a spatial gesture except the second spatial gesture in the P preset spatial gestures.
8. The apparatus of claim 5, wherein the acquisition module comprises:
and the measuring unit is used for measuring the spatial attitudes of the scanned M Bluetooth devices.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the bluetooth connection method according to any of claims 1-4.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the bluetooth connection method according to any of claims 1-4.
CN202110081266.3A 2021-01-21 2021-01-21 Bluetooth connection method and device and electronic equipment Active CN112929860B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110081266.3A CN112929860B (en) 2021-01-21 2021-01-21 Bluetooth connection method and device and electronic equipment
PCT/CN2022/071955 WO2022156598A1 (en) 2021-01-21 2022-01-14 Bluetooth connection method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110081266.3A CN112929860B (en) 2021-01-21 2021-01-21 Bluetooth connection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112929860A CN112929860A (en) 2021-06-08
CN112929860B true CN112929860B (en) 2023-09-19

Family

ID=76163937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110081266.3A Active CN112929860B (en) 2021-01-21 2021-01-21 Bluetooth connection method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN112929860B (en)
WO (1) WO2022156598A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929860B (en) * 2021-01-21 2023-09-19 维沃移动通信有限公司 Bluetooth connection method and device and electronic equipment
CN116707053A (en) * 2022-11-30 2023-09-05 荣耀终端有限公司 Watch, charging base and charging system
CN117255332B (en) * 2023-11-17 2024-03-19 Tcl通讯科技(成都)有限公司 Bluetooth connection control method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277748A (en) * 2017-05-15 2017-10-20 深圳市冠旭电子股份有限公司 A kind of Bluetooth pairing methods, system and its terminal device
CN110337090A (en) * 2019-08-12 2019-10-15 广州小鹏汽车科技有限公司 A kind of connection method of bluetooth equipment and device
CN111669737A (en) * 2020-05-27 2020-09-15 维沃移动通信有限公司 Bluetooth device connection method and device and electronic device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101478030B1 (en) * 2009-01-29 2014-12-31 삼성전자주식회사 Method for searching and connecting bluetooth device and apparatus using the same
CN105376708B (en) * 2015-10-09 2019-06-07 Oppo广东移动通信有限公司 A kind of connection method and system of bluetooth equipment selection target equipment
CN105430601B (en) * 2015-11-18 2020-02-11 腾讯科技(深圳)有限公司 Bluetooth device list display method and device and mobile terminal
WO2018209555A1 (en) * 2017-05-16 2018-11-22 深圳市创客工场科技有限公司 Bluetooth device connection method and terminal device
CN109644263B (en) * 2017-12-28 2021-02-26 深圳配天智能技术研究院有限公司 First intelligent device, connection method thereof and device with storage function
CN112929860B (en) * 2021-01-21 2023-09-19 维沃移动通信有限公司 Bluetooth connection method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277748A (en) * 2017-05-15 2017-10-20 深圳市冠旭电子股份有限公司 A kind of Bluetooth pairing methods, system and its terminal device
CN110337090A (en) * 2019-08-12 2019-10-15 广州小鹏汽车科技有限公司 A kind of connection method of bluetooth equipment and device
CN111669737A (en) * 2020-05-27 2020-09-15 维沃移动通信有限公司 Bluetooth device connection method and device and electronic device

Also Published As

Publication number Publication date
WO2022156598A1 (en) 2022-07-28
CN112929860A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN112929860B (en) Bluetooth connection method and device and electronic equipment
CN109167894B (en) Camera control method and device, mobile terminal and storage medium
CN111176764B (en) Display control method and terminal equipment
CN109922265B (en) Video shooting method and terminal equipment
CN109495616B (en) Photographing method and terminal equipment
CN108024073B (en) Video editing method and device and intelligent mobile terminal
CN112738402B (en) Shooting method, shooting device, electronic equipment and medium
CN109618218B (en) Video processing method and mobile terminal
CN108984066B (en) Application icon display method and mobile terminal
CN111083374B (en) Filter adding method and electronic equipment
CN112911147A (en) Display control method, display control device and electronic equipment
CN110890969B (en) Method and device for mass-sending message, electronic equipment and storage medium
CN109189290B (en) Click area identification method and device and computer readable storage medium
CN112929734B (en) Screen projection method and device and electronic equipment
CN112437231B (en) Image shooting method and device, electronic equipment and storage medium
CN113709306A (en) Session processing method and device and electronic equipment
CN110543276B (en) Picture screening method and terminal equipment thereof
CN111026477B (en) Display method and electronic equipment
CN112486387A (en) Application program control method and device
CN114466140B (en) Image shooting method and device
CN111147750B (en) Object display method, electronic device, and medium
CN113778311A (en) Operation method and device and electronic equipment
CN110049253B (en) Focusing control method and device and computer readable storage medium
CN109947324B (en) Wearable device desktop application display method, wearable device and storage medium
CN110225251B (en) Video recording method and terminal

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
GR01 Patent grant
GR01 Patent grant