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

Bluetooth connection method and device and electronic equipment Download PDF

Info

Publication number
CN112929860A
CN112929860A CN202110081266.3A CN202110081266A CN112929860A CN 112929860 A CN112929860 A CN 112929860A CN 202110081266 A CN202110081266 A CN 202110081266A CN 112929860 A CN112929860 A CN 112929860A
Authority
CN
China
Prior art keywords
bluetooth
spatial
bluetooth devices
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.)
Granted
Application number
CN202110081266.3A
Other languages
Chinese (zh)
Other versions
CN112929860B (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

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

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

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 equipment, the types of intelligent equipment are more and more, including various electronic equipment such as cell-phone, wrist-watch, bracelet, intelligent stereo set. Different electronic devices often need to communicate with each other to perform information interaction such as command control and data transmission, and bluetooth is widely applied to various electronic devices as a mature communication mode.
When bluetooth connection is performed, if there are more bluetooth devices in the environment where the master bluetooth device is located, a large amount of identification information of the bluetooth devices may appear in the bluetooth scanning interface of the master bluetooth device. Since the user may not know the identification information of the bluetooth device to be connected, the bluetooth connection can only be tried one by one based on the displayed identification information of the bluetooth device in the bluetooth scanning interface, resulting in a long operation time of the bluetooth connection.
Disclosure of Invention
The embodiment of the application aims to provide a Bluetooth connection method, a Bluetooth connection device and electronic equipment, and the problem that in the prior art, the Bluetooth connection operation time is long can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a bluetooth connection method, including:
acquiring the space postures of the scanned M Bluetooth devices;
bluetooth connection is carried out with N Bluetooth devices in the M Bluetooth devices;
and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
In a second aspect, an embodiment of the present application provides a bluetooth connection apparatus, including:
the acquisition module is used for acquiring the space postures of the scanned M Bluetooth devices;
the Bluetooth connection module is used for connecting with N Bluetooth devices in the M Bluetooth devices in a Bluetooth mode;
and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
In a third aspect, an embodiment of the present application provides 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, the program or instructions implement the steps of the method according to the first aspect.
In a fourth 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 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 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, the spatial postures of the scanned M Bluetooth devices are obtained; bluetooth connection is carried out with N Bluetooth devices in the M Bluetooth devices; and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture. Like this, can carry out the 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 the operating time that the bluetooth is connected, realize the bluetooth fast and connect.
Drawings
Fig. 1 is a flowchart of a bluetooth connection method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a Bluetooth scan interface without filter conditions set;
FIG. 3 is a schematic diagram of a Bluetooth scan interface with filter conditions set;
FIG. 4 is a schematic view of a Bluetooth scanning interface showing a selection window;
fig. 5 is a structural diagram of a bluetooth connection device provided in an embodiment of the present application;
fig. 6 is a block diagram of an electronic device provided in 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 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 connection provided by the embodiments 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, fig. 1 is a flowchart of a bluetooth connection method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
and step 101, acquiring the space postures of the scanned M Bluetooth devices.
Wherein M is a positive integer.
In this step, usually, when the user triggers the bluetooth control, the triggering device or the electronic device (which may be collectively referred to as a master bluetooth device hereinafter) acquires the spatial gesture of the bluetooth device that can be scanned by the periphery, and of course, when the bluetooth control is in the on state, the spatial gesture of the bluetooth device that can be scanned by the periphery may also be acquired in real time or periodically. Wherein, bluetooth control means the control of opening or closing the bluetooth function.
The M bluetooth devices refer to all electronic devices with bluetooth functions enabled, which can be scanned by the master bluetooth device in the current environment, and may be referred to as slave bluetooth devices.
The spatial attitude of the bluetooth device may reflect a motion state of the bluetooth device in the space and a placement state of the bluetooth device in the space, wherein the motion state may substantially include stationary and moving. According to the placement state of the Bluetooth device when the Bluetooth device is static, the Bluetooth device can be horizontally placed, inclined, transversely placed, vertically placed or the like. The bluetooth device may be one of shaken and rotated, etc. again according to its placement state when in motion.
There are two ways for the master bluetooth device to obtain the spatial attitude of the slave bluetooth device, which are described in detail below.
Specifically, the step 101 specifically includes:
receiving target information broadcasted by the M Bluetooth devices; wherein the target information comprises the spatial postures of the M Bluetooth devices; alternatively, the first and second electrodes may be,
and measuring the spatial postures of the scanned M Bluetooth devices.
The receiving of the target information broadcasted by the M bluetooth devices is a first way of obtaining the spatial attitude of the slave bluetooth device, and the essence of the obtaining way is to obtain the spatial attitude obtained by the slave bluetooth device in an internal measurement way. The second way of obtaining the spatial attitude of the slave bluetooth device is to measure the spatial attitude of the M bluetooth devices, and the essence of the obtaining way is that the master bluetooth device obtains the spatial attitude of the slave bluetooth device through an external measurement way.
The first mode is specifically implemented in that a bluetooth device (whether a master bluetooth device or a slave bluetooth device) may be internally provided with a module for measuring a spatial gesture, for example, a gyroscope, an accelerometer, a magnetic sensor, and the like, and the bluetooth device may recognize its own spatial gesture through the internally provided module.
For example, a gyroscope and an accelerometer are arranged in the Bluetooth device, the Bluetooth device can be judged to be in a static state or in a moving state 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 the static state, and when the Bluetooth device is in the static state, the Bluetooth device can be identified to be in one of horizontal placement, inclination, transverse placement and vertical placement according to the value of the accelerometer. When the Bluetooth device is not stationary, i.e., moving, it can be recognized that the Bluetooth device is in one of shaking and rotating according to the value of the gyroscope.
After the bluetooth device recognizes the spatial gesture of itself, the bluetooth device may transmit the spatial gesture of itself while broadcasting the message. Accordingly, the master bluetooth device may receive a target message broadcasted from the slave bluetooth device, and obtain the spatial pose of the slave bluetooth device from the target message.
The second way is specifically implemented in that the bluetooth device may adopt a specific camera module to track and record the scanned bluetooth device so as to measure the spatial attitude of other bluetooth devices. Alternatively, the bluetooth device may also use the detecting instrument to measure the spatial attitude of other bluetooth devices within the distance range.
It should be noted that the master bluetooth device and the slave bluetooth device described in the embodiment 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 another bluetooth device, which is not described herein.
The master Bluetooth device can recognize the space gesture of the slave Bluetooth device in various modes, the space gesture of the Bluetooth device is obtained flexibly, and a foundation is laid for subsequently screening out the Bluetooth devices displayed in the Bluetooth scanning interface.
And 102, connecting with N Bluetooth devices in the M Bluetooth devices in a Bluetooth mode.
And M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
The first spatial gesture may be a preset spatial gesture, or a spatial gesture selected by a user, or a spatial gesture of a master bluetooth device, which is not specifically limited herein.
The N bluetooth devices may be some or all of the bluetooth devices whose spatial attitudes match the first spatial attitude of the M bluetooth devices. Q Bluetooth devices with space postures matched with the first space postures can be obtained from the M Bluetooth devices, and Bluetooth connection is carried out on the Q Bluetooth devices and N Bluetooth devices, wherein Q is larger than or equal to N.
When the bluetooth connection is performed, the bluetooth connection may be performed automatically with the N bluetooth devices, or may be performed according to an input of a user, that is, the bluetooth connection is performed actively with the N bluetooth devices, under the condition that the input of the user is received, which is not specifically limited herein.
In the embodiment, the spatial postures of the scanned M Bluetooth devices are obtained; bluetooth connection is carried out with N Bluetooth devices in the M Bluetooth devices; and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture. Like this, can carry out the 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 the operating time that the bluetooth is connected, realize the bluetooth fast and connect.
Optionally, the step 102 may specifically include:
and carrying out Bluetooth connection on the N Bluetooth devices corresponding to the target identification information, wherein 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 the Bluetooth devices of which the space postures are matched with the first space postures in the M Bluetooth devices.
Optionally, the step 102 may specifically include:
and carrying out Bluetooth connection on the N Bluetooth devices corresponding to the target option, wherein the target option is an option which is selected from options displayed on a Bluetooth scanning interface and indicates a first space posture, and the option displayed on the Bluetooth scanning interface is used for indicating the space postures of the M Bluetooth devices.
In this embodiment, the bluetooth connection may be performed with N bluetooth devices among the M bluetooth devices in two ways. The first mode may be that according to the identification information of the bluetooth device, the N bluetooth devices corresponding to the target identification information perform bluetooth connection, and the second mode may be that according to the option of the bluetooth device, the N bluetooth devices corresponding to the target option perform bluetooth connection, where the option of the bluetooth device may be used to indicate the spatial gestures of the M bluetooth devices.
Specifically, a filtering condition may be set for a first bluetooth connection mode with N bluetooth devices among the M bluetooth devices, and the filtering condition may be used to filter out a target bluetooth device that meets the condition. The filtering condition can represent the Bluetooth equipment which is filtered to obtain a certain space gesture, and can also represent the Bluetooth equipment which is filtered to remove a certain space gesture so as to obtain the Bluetooth equipment of other space gestures.
Regardless of which filtering condition is used, the first spatial pose may be finally obtained based on the filtering condition. For example, if the filtering condition represents a bluetooth device that has been filtered to obtain a certain spatial gesture, the first spatial gesture is a spatial gesture in the filtering condition. For another example, if the filtering condition represents a bluetooth device that has been filtered to remove a certain spatial gesture, so as to obtain bluetooth devices in other spatial gestures, the first spatial gesture is a spatial gesture excluding the spatial gesture in the filtering condition in P preset spatial gestures, where P is a positive integer.
After the first space gesture is obtained, the space gesture of each scanned bluetooth device can be compared with the first space gesture respectively, if the space gesture is matched with the first space gesture, the bluetooth device is a target bluetooth device, and identification information of the bluetooth device can be displayed in a bluetooth scanning interface. If not, the identification information of the Bluetooth module is not displayed on the Bluetooth scanning interface. And each Bluetooth device in 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 setting a filtering condition, and fig. 3 is a bluetooth scanning interface with setting 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 compared with the bluetooth scanning interface without setting the filtering condition, so that the number of times of trying bluetooth connections can be greatly reduced.
In fig. 3, the bluetooth scanning interface may display identification information of the target bluetooth device, and the identification information of the target bluetooth device may be a bluetooth name and/or an identification number of the target bluetooth device.
And then, performing Bluetooth connection with N Bluetooth devices corresponding to the target identification information. The target identification information may be at least one identification information of the target bluetooth device.
The target identification information may be any one of the identification information of the target bluetooth device, or may be identification information selected by a user in 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, that is, the bluetooth scanning interface includes identification information of a plurality of target bluetooth devices, the target identification information may also be some or all of the identification information of the plurality of target bluetooth devices.
The first mode can be that, under the condition that the identification information of the target Bluetooth device is displayed in the Bluetooth scanning interface, the automatic Bluetooth connection can be carried out on the N Bluetooth devices corresponding to the target identification information.
The master bluetooth device may preset the number of connectable slave bluetooth devices, and when 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 the 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.
And under the condition that the data of the target Bluetooth device displayed in the Bluetooth scanning interface is more than the number of the connectable slave Bluetooth devices, the master Bluetooth device can perform automatic Bluetooth connection with the target Bluetooth device corresponding to part of the identification information displayed in the Bluetooth scanning interface. The number of the part of the identification information may be the number of slave bluetooth devices connectable to the master bluetooth device, and the part of the identification information may be identification information randomly selected by the master bluetooth device, and in this application scenario, the target identification information may be any one or several of a plurality of identification information displayed in the bluetooth scanning interface. For example, if the number of slave bluetooth devices connectable to the master bluetooth device is 1, that is, N is 1, the target identification information may be any one of the plurality of identification information displayed in the bluetooth scan interface.
Of course, the master bluetooth device may also perform automatic bluetooth connection with the target bluetooth devices according to the distances to the target bluetooth devices, for example, perform automatic bluetooth connection with one or more target bluetooth devices closest to the target bluetooth devices in the order of the distances from near to far. In this application scenario, according to an arrangement order of the distances between the master bluetooth device and the target bluetooth devices from near to far, the target identification information may be identification information of N target bluetooth devices arranged at the front distance from the master bluetooth device, where N is smaller than the number of slave bluetooth devices connectable to the master bluetooth device.
The second method may be that, in a case where a selection input of target identification information in the identification information of the target bluetooth device is received, the target bluetooth device corresponding to the target identification information performs bluetooth connection, and in this application scenario, the target identification information is identification information selected by a user in the identification information of the target bluetooth device.
Because the user knows the space gesture of the Bluetooth device required to be connected, or the user can place the Bluetooth device required to be connected in a certain space state, the target Bluetooth device meeting the condition can be obtained through the space gesture filtering of the Bluetooth device, and even if the user does not know the identification information of the Bluetooth device required to be connected, the number of times of trying Bluetooth connection can be reduced by reducing the number of Bluetooth devices in the Bluetooth scanning interface.
Aiming at the first mode of Bluetooth connection with N Bluetooth devices in M Bluetooth devices, the space gesture of the scanned Bluetooth devices is acquired, and only the Bluetooth devices matched with the space gesture are displayed in the Bluetooth scanning interface, so that the Bluetooth devices displayed in the Bluetooth scanning interface can be reduced, the times of trying to connect the Bluetooth devices by a user can be reduced, the operation time of Bluetooth connection is reduced, and Bluetooth connection is realized quickly.
For a second way of bluetooth connection with N of the M bluetooth devices, M options may be displayed in the bluetooth scanning interface, each option may be used to indicate a spatial gesture of the bluetooth device.
In order to correspond each option to a bluetooth device, the 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 space postures of the corresponding Bluetooth devices, and each option displayed in the Bluetooth scanning interface can be used as a control for a user to select.
For example, the spatial attitude of the device 1 is shaking, the spatial attitude of the device 2 is lying, the spatial attitude of the device 3 is lying, the spatial attitude of the device 4 is standing, the spatial attitude of the device 5 is tilting, and the spatial attitude of the device 6 is rotating.
The user may click a target option among the M options to select the slave bluetooth device in the first spatial posture, and correspondingly, the master bluetooth device may perform bluetooth connection with the bluetooth device corresponding to the target option when receiving a selection operation of the target option among the M options.
Acquiring the space postures of the scanned M Bluetooth devices aiming at a second mode of Bluetooth connection with N Bluetooth devices in the 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 a target option in the M options under the condition of receiving selection operation of the target option; the M options are for indicating spatial gestures of the M Bluetooth devices. Therefore, the user can select the target option indicating the first space posture according to the space posture of the Bluetooth equipment indicated by the option displayed in the Bluetooth scanning interface, so that the main Bluetooth equipment is connected with the Bluetooth equipment in the first space posture in a Bluetooth mode, the number of times that the user tries to connect the Bluetooth equipment can be reduced, the operation time of Bluetooth connection is reduced, and Bluetooth connection is realized quickly.
Optionally, before the N bluetooth devices corresponding to the target identifier perform bluetooth connection, the method further includes:
displaying a selection window in the event that a first input to a first target control is received; the selection window comprises P kinds of preset space gestures of the Bluetooth device, wherein P is a positive integer;
determining the first spatial gesture upon receiving a second input to a second spatial gesture of the P preset spatial gestures; the first spatial attitude is the second spatial attitude, or the first spatial attitude is a spatial attitude other than the second spatial attitude in the P kinds of preset spatial attitudes.
Wherein the first target control is to set the first spatial pose.
Optionally, the first target control is a switch control in the bluetooth scanning interface, and displaying the selection window when receiving a first input to the first target control includes:
and under the condition that touch input for starting the switch control is received, displaying the selection window in the Bluetooth scanning interface.
This embodiment mainly describes a setting process of the filtering conditions, where the filtering conditions of the bluetooth device may be preset in a setting interface, or may be set in real time in a bluetooth scanning interface. When the setting interface is preset, the first target control can be located in the setting interface, and when the setting interface is set in real time, 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 also be a voice input, a gesture input, or a touch input, where the touch input may also be a single-click operation, a double-click operation, or a sliding operation.
The first target control may be a switch control, and certainly may also be other types of controls, and in the following embodiment, the first target control will be described in detail by taking the switch control in the bluetooth scanning interface as an example.
The first target control is an "intelligent filter switch" control in fig. 2 and fig. 3, and the "intelligent filter switch" control includes two states, the first state is an off state, as shown in fig. 2, after the "intelligent filter switch" control is turned off, the scanned bluetooth devices 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 open state, and when a user executes a clicking operation for the intelligent filter switch control to open the filter condition setting function, a selection window is displayed in the bluetooth scanning interface, P kinds of preset spatial gestures of the bluetooth device are displayed in the selection window, and the preset spatial gestures are preset spatial gestures, such as static, shaking or flat placement, and the like, as shown in fig. 4.
If the user performs the selection operation on the second spatial gesture in the P kinds of preset spatial gestures, and after performing the determination operation, the user may exit the selection window, where the determination operation may be an operation of clicking a blank space of the screen. Accordingly, the master bluetooth device may determine the filtering condition based on the second spatial posture selected by the user's selection operation (the second spatial posture selected by the user is shaking as shown in fig. 4). The number of the second spatial postures may be 1, or may be multiple, and is not specifically 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 in the P preset spatial gestures.
Of course, the user may not select any spatial gesture in the selection window, that is, the user does not set any filtering condition, and in such a scenario, the master bluetooth device may display all scanned bluetooth devices in the bluetooth scanning interface.
Optionally, after determining the first spatial gesture when receiving a second input to a second spatial gesture of the P preset spatial gestures, the method further includes:
displaying a second target control in the Bluetooth scanning interface; wherein the second target control is to display the first spatial gesture;
displaying the selection window in the Bluetooth scanning interface to reset the first spatial gesture upon receiving a third input to the second target control.
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 a user to know the set filtering conditions more intuitively and enable the user to reset the filtering conditions conveniently, a second target control can be displayed in the Bluetooth scanning interface and is used for displaying the first space posture. The "shake" control as shown in FIG. 3 is the second target control.
And if the user clicks the second target control, the main Bluetooth device receives clicking operation on the second target control, and the main Bluetooth device redisplays the selection window on the Bluetooth scanning interface so as to reset the filtering condition, namely, reset the first space posture.
In this embodiment, the user can trigger the setting of the filtering condition through the first target control according to the spatial posture of the bluetooth device, and can set the first target control in the bluetooth scanning interface, so as to set the filtering condition in real time while bluetooth scanning. And, can also show the filter condition in the form of controlling part in bluetooth scanning interface, can make the filter condition that the user more audio-visual knows its setting like this, and can also reset the filter condition based on this controlling part simultaneously for the setting of filter condition is simple and nimble.
It should be noted that, in the bluetooth connection method provided in the embodiment of the present application, the execution main 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 present application, a bluetooth connection apparatus executing a bluetooth connection method is taken as an example to describe the bluetooth connection apparatus provided in the embodiment of the present application.
Referring to fig. 5, fig. 5 is a structural diagram of a bluetooth connection apparatus according to an embodiment of the present application, and as shown in fig. 5, the bluetooth connection apparatus 500 includes:
an obtaining module 501, configured to obtain spatial gestures of the scanned M bluetooth devices;
a bluetooth connection module 502, configured to perform bluetooth connection with N bluetooth devices of the M bluetooth devices;
and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
Optionally, the bluetooth connection module 502 includes:
the first Bluetooth connection unit is used for carrying out Bluetooth connection on N Bluetooth devices 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 the Bluetooth devices matched with the first space postures in the M Bluetooth devices.
Optionally, the bluetooth connection module 502 includes:
and the second Bluetooth connection unit is used for carrying out Bluetooth connection on the N Bluetooth devices corresponding to the target option, the target option is an option which is selected from options displayed on a Bluetooth scanning interface and indicates the first space posture, and the option displayed on the Bluetooth scanning interface is used for indicating the space postures of the M Bluetooth devices.
Optionally, the apparatus further comprises:
the display module is used for displaying a selection window under the condition that a first input to the first target control is received; the selection window comprises P kinds of preset space gestures of the Bluetooth device, wherein P is a positive integer;
a determining module, configured to determine the first spatial gesture when a second input to a second spatial gesture of the P preset spatial gestures is received; the first spatial attitude is the second spatial attitude, or the first spatial attitude is a spatial attitude other than the second spatial attitude in the P kinds of preset spatial attitudes.
Optionally, the obtaining module 501 includes:
the receiving unit is used for receiving the target information broadcasted by the M Bluetooth devices; wherein the target information comprises the spatial postures of the M Bluetooth devices;
and the measuring unit is used for measuring the space postures of the scanned M Bluetooth devices.
In this embodiment, the spatial gestures of the M scanned bluetooth devices are acquired by the acquisition module 501; the bluetooth connection module 502 is bluetooth connected with N bluetooth devices among the M bluetooth devices; and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture. Like this, can carry out the 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 the operating time that the bluetooth is connected, realize the bluetooth fast and connect.
The bluetooth connection device in the embodiment of the present application may be a device, 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 connection device in the embodiment of the present application may be a device 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 connection device provided in this embodiment of the application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, referring to fig. 6, fig. 6 is a structural diagram of an electronic device according to an embodiment of the present disclosure, as shown in fig. 6, an electronic device according to an embodiment of the present disclosure is further provided, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of being executed on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the foregoing bluetooth connection method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
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. 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: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed 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 those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is configured to obtain spatial gestures of the scanned M bluetooth devices; bluetooth connection is carried out with N Bluetooth devices in the M Bluetooth devices;
and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
In the embodiment of the present application, the processor 710 obtains the spatial gestures of the scanned M bluetooth devices; bluetooth connection is carried out with N Bluetooth devices in the M Bluetooth devices; and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture. Like this, can carry out the 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 the operating time that the bluetooth is connected, realize the bluetooth fast and connect.
Optionally, the processor 710 is further configured to perform bluetooth connection with N bluetooth devices corresponding to 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 whose spatial gesture matches 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 posture selected from options displayed on a bluetooth scanning interface, and the options displayed on the bluetooth scanning interface are used to indicate spatial postures of the M bluetooth devices.
Optionally, the display unit 706 is configured to display a selection window in a case that a first input to the first target control is received; the selection window comprises P kinds of preset space gestures of the Bluetooth device, wherein P is a positive integer;
processor 710 further configured to determine the first spatial gesture upon receiving a second input for a second spatial gesture of the P preset spatial gestures; the first spatial attitude is the second spatial attitude, or the first spatial attitude is a spatial attitude other than the second spatial attitude in the P kinds of preset spatial attitudes.
Optionally, the processor 710 is further configured to receive target information broadcast by the M bluetooth devices; wherein the target information comprises the spatial postures of the M Bluetooth devices; or measuring the spatial postures of the scanned M Bluetooth devices.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos 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 of 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, and a joystick, 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 applications and operating systems. Processor 710 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 710.
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 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, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to run a program or an instruction, implement each process of the above embodiment of the bluetooth connection method, and 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.
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 (12)

1. A bluetooth connection method, comprising:
acquiring the space postures of the scanned M Bluetooth devices;
bluetooth connection is carried out with N Bluetooth devices in the M Bluetooth devices;
and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
2. The method of claim 1, wherein said Bluetooth interfacing with N of said M Bluetooth devices comprises:
and carrying out Bluetooth connection on the N Bluetooth devices corresponding to the target identification information, wherein 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 the Bluetooth devices of which the space postures are matched with the first space postures in the M Bluetooth devices.
3. The method of claim 1, wherein said Bluetooth interfacing with N of said M Bluetooth devices comprises:
and carrying out Bluetooth connection on the N Bluetooth devices corresponding to the target option, wherein the target option is an option which is selected from options displayed on a Bluetooth scanning interface and indicates a first space posture, and the option displayed on the Bluetooth scanning interface is used for indicating the space postures of the M Bluetooth devices.
4. The method of claim 2, wherein before the N bluetooth devices corresponding to the target identification information perform bluetooth connection, the method further comprises:
displaying a selection window in the event that a first input to a first target control is received; the selection window comprises P kinds of preset space gestures of the Bluetooth device, wherein P is a positive integer;
determining the first spatial gesture upon receiving a second input to a second spatial gesture of the P preset spatial gestures; the first spatial attitude is the second spatial attitude, or the first spatial attitude is a spatial attitude other than the second spatial attitude in the P kinds of preset spatial attitudes.
5. The method of claim 1, wherein the obtaining the spatial poses of the scanned M bluetooth devices comprises:
receiving target information broadcasted by the M Bluetooth devices; wherein the target information comprises the spatial postures of the M Bluetooth devices; alternatively, the first and second electrodes may be,
and measuring the spatial postures of the scanned M Bluetooth devices.
6. A bluetooth connection device, comprising:
the acquisition module is used for acquiring the space postures of the scanned M Bluetooth devices;
the Bluetooth connection module is used for connecting with N Bluetooth devices in the M Bluetooth devices in a Bluetooth mode;
and M and N are positive integers, and the space postures of the N Bluetooth devices are matched with the first space posture.
7. The apparatus of claim 6, wherein the Bluetooth connection module comprises:
the first Bluetooth connection unit is used for carrying out Bluetooth connection on N Bluetooth devices 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 the Bluetooth devices matched with the first space postures in the M Bluetooth devices.
8. The apparatus of claim 6, wherein the Bluetooth connection module comprises:
and the second Bluetooth connection unit is used for carrying out Bluetooth connection on the N Bluetooth devices corresponding to the target option, the target option is an option which is selected from options displayed on a Bluetooth scanning interface and indicates the first space posture, and the option displayed on the Bluetooth scanning interface is used for indicating the space postures of the M Bluetooth devices.
9. The apparatus of claim 7, further comprising:
the display module is used for displaying a selection window under the condition that a first input to the first target control is received; the selection window comprises P kinds of preset space gestures of the Bluetooth device, wherein P is a positive integer;
a determining module, configured to determine the first spatial gesture when a second input to a second spatial gesture of the P preset spatial gestures is received; the first spatial attitude is the second spatial attitude, or the first spatial attitude is a spatial attitude other than the second spatial attitude in the P kinds of preset spatial attitudes.
10. The apparatus of claim 6, wherein the obtaining module comprises:
the receiving unit is used for receiving the target information broadcasted by the M Bluetooth devices; wherein the target information comprises the spatial postures of the M Bluetooth devices;
and the measuring unit is used for measuring the space postures of the scanned M Bluetooth devices.
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 connection method according to claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the bluetooth connection method according to claims 1-5.
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 true CN112929860A (en) 2021-06-08
CN112929860B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156598A1 (en) * 2021-01-21 2022-07-28 维沃移动通信有限公司 Bluetooth connection method and apparatus, and electronic device
CN116707053A (en) * 2022-11-30 2023-09-05 荣耀终端有限公司 Watch, charging base and charging system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
WO2019127287A1 (en) * 2017-12-28 2019-07-04 深圳配天智能技术研究院有限公司 First smart device and connection method therefor and apparatus having 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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156598A1 (en) * 2021-01-21 2022-07-28 维沃移动通信有限公司 Bluetooth connection method and apparatus, and electronic device
CN116707053A (en) * 2022-11-30 2023-09-05 荣耀终端有限公司 Watch, charging base and charging system

Also Published As

Publication number Publication date
CN112929860B (en) 2023-09-19
WO2022156598A1 (en) 2022-07-28

Similar Documents

Publication Publication Date Title
CN112929860B (en) Bluetooth connection method and device and electronic equipment
CN110659098B (en) Data updating method and device, terminal equipment and storage medium
CN109739429B (en) Screen switching processing method and mobile terminal equipment
CN108984066B (en) Application icon display method and mobile terminal
CN111176764B (en) Display control method and terminal equipment
CN111669737A (en) Bluetooth device connection method and device and electronic device
CN112783594A (en) Message display method and device and electronic equipment
CN112911147A (en) Display control method, display control device and electronic equipment
CN112083854A (en) Application program running method and device
CN113794795A (en) Information sharing method and device, electronic equipment and readable storage medium
CN112269505A (en) Audio and video control method and device and electronic equipment
CN109669710B (en) Note processing method and terminal
CN111190515A (en) Shortcut panel operation method, device and readable storage medium
CN107967086B (en) Icon arrangement method and device for mobile terminal and mobile terminal
CN114025092A (en) Shooting control display method and device, electronic equipment and medium
CN113747073A (en) Video shooting method and device and electronic equipment
CN112486387A (en) Application program control method and device
CN112929734A (en) Screen projection method and device and electronic equipment
CN112783406A (en) Operation execution method and device and electronic equipment
CN110543276A (en) Picture screening method and terminal equipment thereof
CN111813741B (en) File sharing method and electronic equipment
CN111796736B (en) Application sharing method and device and electronic equipment
CN111147750B (en) Object display method, electronic device, and medium
CN110324493B (en) Notification message checking method and terminal
CN113778311A (en) Operation method and device and electronic equipment

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