CN114390724A - Connection method and device and electronic equipment - Google Patents

Connection method and device and electronic equipment Download PDF

Info

Publication number
CN114390724A
CN114390724A CN202210028333.XA CN202210028333A CN114390724A CN 114390724 A CN114390724 A CN 114390724A CN 202210028333 A CN202210028333 A CN 202210028333A CN 114390724 A CN114390724 A CN 114390724A
Authority
CN
China
Prior art keywords
bluetooth
electronic device
icon
input
bluetooth device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210028333.XA
Other languages
Chinese (zh)
Inventor
江鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210028333.XA priority Critical patent/CN114390724A/en
Publication of CN114390724A publication Critical patent/CN114390724A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a connection method, a connection device and electronic equipment, and belongs to the technical field of computer communication. In an embodiment of the present application, a connection method includes: under the condition that a communication signal sent by a first Bluetooth device is detected, displaying a first identifier in an area associated with a first icon, wherein the first identifier is a connectable state identifier of the first Bluetooth device; receiving a first input to the first identifier or to the first icon; responding to the first input, connecting the first Bluetooth device, and outputting the information associated with the first icon by using the first Bluetooth device.

Description

Connection method and device and electronic equipment
Technical Field
The application belongs to the technical field of computer communication, and particularly relates to a connection method, a connection device and electronic equipment.
Background
Generally, peripherals such as an earphone, a keyboard, a mouse and the like having a Bluetooth (Bluetooth) function may be collectively referred to as a Bluetooth device, the Bluetooth device can be connected in a pairing manner with a plurality of electronic devices within a certain range, and generally, the Bluetooth device can be connected with one electronic device only at the same time, and can be connected with another electronic device only after being disconnected from the currently connected electronic device.
Furthermore, the bluetooth device generally memorizes the electronic device that has been recently connected, so that the electronic device that has been recently connected can be automatically connected when the bluetooth device is turned on, and if the electronic device that has been automatically connected by the bluetooth device is not the electronic device currently used by the user, the user needs to operate on the electronic device that has been connected to disconnect the bluetooth connection first, and then operate the electronic device currently used to connect to the bluetooth device.
Therefore, in the related art, the bluetooth device is easily accessed to the electronic device that is not used by the user by mistake, and the switching operation after the wrong connection is complicated, resulting in poor user experience.
Disclosure of Invention
The embodiment of the application aims to provide a connection method, a connection device and an electronic device, and can solve the problem that a Bluetooth device is easy to access the electronic device which is not used by a user by mistake.
In a first aspect, an embodiment of the present application provides a connection method, which is applied to a first electronic device, and the method includes:
under the condition that a communication signal sent by a first Bluetooth device is detected, displaying a first identifier in an area associated with a first icon, wherein the first identifier is a connectable state identifier of the first Bluetooth device;
receiving a first input to the first identifier or to the first icon;
responding to the first input, connecting the first Bluetooth device, and outputting the information associated with the first icon by using the first Bluetooth device.
In a second aspect, an embodiment of the present application provides a connection apparatus, which is applied to a first electronic device, and includes:
the first display module is used for displaying a first identifier in an area associated with a first icon under the condition that a communication signal sent by first Bluetooth equipment is detected, wherein the first identifier is a connectable state identifier of the first Bluetooth equipment;
a first receiving module for receiving a first input to the first identifier or to the first icon;
and the first connecting module is used for responding to the first input, connecting the first Bluetooth equipment and outputting the information associated with the first icon by utilizing the first Bluetooth equipment.
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 connection method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the connection 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 connection method according to the first aspect.
In the embodiment of the application, the first electronic device displays a first identifier in an area associated with a first icon when detecting a communication signal sent by a first bluetooth device, wherein the first identifier is a connectable state identifier of the first bluetooth device; receiving a first input to the first identifier or to the first icon, and in response to the first input, connecting the first bluetooth device and outputting information associated with the first icon using the first bluetooth device. Therefore, the electronic equipment is in a connectable state at the Bluetooth equipment and initiates connection to the Bluetooth equipment after receiving the corresponding input of the user, so that the Bluetooth equipment can be prevented from being automatically connected to other electronic equipment by mistake, the connection between the Bluetooth equipment and the correct electronic equipment can be quickly and efficiently established, and the operation is convenient and fast.
Drawings
FIG. 1 is a schematic flow chart of a connection method in one embodiment of the present application;
fig. 2 is an interface diagram of App which requires the use of bluetooth devices in one example of the present application;
FIG. 3 is a schematic diagram showing a first identifier in another example of the present application;
FIG. 4 is a schematic diagram showing a first marker in yet another example of the present application;
FIG. 5 is a schematic diagram showing a first marker in yet another example of the present application;
FIG. 6 is a schematic diagram of a handover connection in one embodiment of the present application;
FIG. 7 is a schematic view of the construction of a coupling device in another embodiment of the present application;
FIG. 8 is a diagram of a hardware configuration of an electronic device in a further embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device in another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
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.
In the related art, the bluetooth device memorizes the electronic device that has been connected last time, so that when the bluetooth device is turned on, the bluetooth device will automatically establish connection with the electronic device that has been connected last time. Thus, in the case where the user has a plurality of electronic devices, it easily occurs that the bluetooth device is automatically connected to an electronic device that is not being used by the user. At this time, if the user wants to switch the connection, the connection with the bluetooth device needs to be initiated on the currently used electronic device by closing the bluetooth function or disconnecting the connection with the bluetooth device from the background setting page on the electronic device which is already connected with the bluetooth device, so that the operation is very complicated.
In order to solve at least one problem in the related art, embodiments of the present application provide a connection method, an apparatus, and an electronic device. The connection method, the connection device, and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 shows a schematic flow chart of a connection method in an embodiment of the present application. The connection method may be applied to the first electronic device, and as shown in fig. 1, the method may include steps S101 to S103:
s101, under the condition that a communication signal sent by the first Bluetooth device is detected, displaying a first identifier in an area associated with the first icon, wherein the first identifier is a connectable state identifier of the first Bluetooth device.
The first Bluetooth device may be any one of a headset, a speaker, a printer, a projector, a display, and the like, which has a Bluetooth (Bluetooth) function.
The communication signal of the first bluetooth device may be a signal for indicating that the bluetooth device is in an on state, or may be a signal for indicating that the bluetooth device is in a connectable state. In some examples, the connectable state may include a state in which the bluetooth device is turned on and is not connected to any electronic device, and may also include a state in which the bluetooth device is turned on and is already connected to a certain electronic device, but is allowed to switch to be connected to another electronic device.
The communication signal of the first bluetooth device may be sent when the bluetooth device is turned on, or sent after the bluetooth device is disconnected from any electronic device, or continuously sent while the bluetooth device is in an on state.
The first icon may be an application icon displayed on the desktop of the first electronic device, or may be an icon representing the identity of the first electronic device.
The first bluetooth device may be a bluetooth device that has been historically paired to connect to the first electronic device. And under the condition that the first electronic device detects the communication signal of the first Bluetooth device, displaying the first identifier in the area associated with the first icon.
S102, receiving a first input of a first identifier or a first icon.
The first input may be a click input of the user on the screen of the first electronic device, or a voice instruction input by the user, or a specific gesture or an air-gap gesture input by the user, which may be determined according to actual usage requirements, and this embodiment does not limit this.
The click input can be single click input, double click input or click input of any number of times, and can also be long-press input or short-press input. The specific gesture may be any one of a tap gesture, a double tap gesture, a swipe gesture, a drag gesture, a zoom gesture, and a rotate gesture.
And S103, responding to the first input, connecting the first Bluetooth equipment, and outputting the information associated with the first icon by using the first Bluetooth equipment.
The first electronic device initiates connection with the first bluetooth device after receiving a first input of a user, so that when a plurality of electronic devices are around the first bluetooth device, the electronic device in use by the user is determined through the first input of a first identifier or a first icon by the user, and the connection with the bluetooth device is established in response to the first input, and after the connection is established, information associated with the first icon can be output by using the first bluetooth device, for example, if the first icon is an application icon, multimedia data (such as audio data of a music App, video data of the video App, picture data of a picture player, and the like) corresponding to the application program can be output, and if the first icon is an identity icon of the first electronic device, some data information on the first electronic device can be output.
In the embodiment of the application, the first electronic device initiates the connection to the bluetooth device when the first bluetooth device is in a connectable state and receives the corresponding input of the user, so that the first bluetooth device can be prevented from being connected to other electronic devices by mistake, the bluetooth device is connected with the correct electronic device (namely, the first electronic device) quickly and efficiently, the operation is convenient, and the operation experience of the user is improved.
In order to more accurately meet the requirement of the user for using the bluetooth device, optionally, in the embodiment of the Application, one or more apps (applications) may be preset, so that when the user opens the preset apps, the electronic device and the bluetooth device automatically establish a connection. In this example, prior to step S101, the method may comprise step S201:
s201, an App needing to use the first Bluetooth equipment is set.
The first bluetooth device, as a peripheral device, may provide an input or output facility when some apps are running. Therefore, as shown in fig. 2, apps 202 that need to use the first bluetooth device can be preset through a system background setting page 201 of the first electronic device 200, and when the preset apps 202 are opened under the condition that a communication signal of the first bluetooth device is detected, the first bluetooth device can be automatically connected, so that the bluetooth device serves as a peripheral device when the apps 202 run, and the user requirements are met.
For example, the first bluetooth device may be a bluetooth headset, and the preset App may be a music-like, video-like, or game-like application. Or the first bluetooth device may be a bluetooth projector, the preset App may be a video-type or office-type application.
For example, the first icon may be an application icon of a first application, the first application may be a preset App, and the first icon may be displayed on a desktop of the electronic device.
Correspondingly, in the case that a communication signal sent by the first bluetooth device is detected in step S101, displaying the first identifier in the area associated with the first icon may specifically include:
and under the condition that a communication signal sent by the first Bluetooth device is detected, displaying a first identifier in association with an area where a first icon on the desktop is located.
Illustratively, as shown in fig. 3, a first icon 302 is displayed on a desktop 301 of the electronic device 300, and the icon 302 may be an icon of the preset App202 shown in fig. 2 in the corresponding step S201.
The first identifier 303 may be a connectable state identifier that the first bluetooth device 304 is not connected to any electronic device. The first marker 303 may be represented by a pattern, text, color, or the like.
For example, after the first bluetooth device 304 is turned on, the bluetooth device 304 is in a state that it can be searched by the first electronic device 300 and can establish a connection. When the first electronic device 300 detects a communication signal sent by the first bluetooth device 304, the first identifier 303 may be displayed in association with the top right corner, the bottom left corner, or the top left corner of the desktop first icon 302.
In case the first identifier 303 is displayed, step S102 is executed to receive a first input to the first identifier or first icon, and then a bluetooth connection is triggered through step S103. Specifically, step S103, in response to the first input, connects the first bluetooth device, and outputs information associated with the first icon by using the first bluetooth device, which may specifically include S1031 to S1032:
s1031, responding to the first input, opening a first application corresponding to the first icon, and connecting a first Bluetooth device;
s1032, under the condition that the multimedia data are played through the first application, the multimedia data are output through the first Bluetooth equipment.
Referring to fig. 3, since the first indicator 303 is associated with a local area location displayed on the first icon 302, an input to the first indicator 303 (e.g., a tap gesture) is also equivalent to an input to the first icon 302. In response to a first input to the first icon or first identifier, a connection is established with the first bluetooth device 304 while the corresponding App is opened. And if the user wants to play the multimedia data through the first application, the multimedia data is output through the first Bluetooth equipment after the connection is established.
Therefore, the Bluetooth device can be automatically connected when the user starts the preset App needing to use the Bluetooth device, so that the Bluetooth device is prevented from being automatically connected with other electronic devices by mistake, and the multimedia data information of the corresponding App is output after connection, so that the user requirements are accurately met.
For example, in the above example, the first identifier is displayed on the first icon only when the first bluetooth device is in a connectable state without any electronic connection, and if the first bluetooth device establishes a connection with the first electronic device 300 or another electronic device, or the first bluetooth device is disconnected from the first electronic device after the connection with the first electronic device is established (the disconnection state is maintained for a preset time period), the first identifier is not displayed on the preset first icon of the first application, so that the user is prevented from performing meaningless (i.e., inputting but not responding) or false triggering operations according to the identifier or the icon.
In order to connect the bluetooth device while satisfying that the user opens the App that needs to use the bluetooth device, and can improve the flexibility of operation, optionally, in this embodiment of the application, as shown in fig. 4, the first icon 404 may be an application icon displayed on the desktop 401 by the electronic device 400, and the first identifier may be displayed by the hover ball 402 displayed on the desktop 401.
Correspondingly, in step S101, in the case where the communication signal sent by the first bluetooth device 403 is detected, the hover ball 402 is displayed on the desktop 401. The first identifier displayed in the hover ball 402 may be used to indicate that the first bluetooth device 403 is in a connectable state to connect with any electronic device.
Step S103, in response to the first input, connects the first bluetooth device, which may specifically include steps S301 to S302:
s301, in the case that the first input is a sliding input to the first identifier, the first identifier is moved to be overlapped with the first icon in response to the first input.
When the first input received in step S102 is a sliding input to the first identifier, the first identifier is moved in response to the first input, for example, the hover ball where the first identifier is located is moved to be overlapped on the first icon.
At this time, the first icon 404 is an icon corresponding to App that the user wants to open.
S302, opening a first application corresponding to the first icon, and connecting a first Bluetooth device.
After the first identifier overlaps the first icon 404, an operation of opening the first application is triggered, and the first bluetooth device 403 is connected. For example, when the hover ball 402 moves to the first icon 404, the first application launch is triggered while the first electronic device 400 connects to the first bluetooth device 403 so that information related to the first application can be output using the first electronic device 403.
Therefore, the App needing to use the Bluetooth equipment does not need to be preset, the user can directly move the first identifier to the corresponding icon, the application program which the user wants to operate and needs to use the first Bluetooth equipment to output information is opened, meanwhile, the connection with the first Bluetooth equipment is established, and the user connection operation is more flexible and convenient.
In order to adapt to a situation that there are multiple electronic devices around the first bluetooth device (generally within 10 meters), the connection situation of the first bluetooth device can be known more intuitively, so that the user performs a connection or connection switching operation, optionally, in this embodiment of the application, the first icon may be an identity icon corresponding to the first electronic device, and the associated area of the first icon may be an area where the bluetooth connection management interface is located. Therefore, connection and switching with the Bluetooth device can be completed on any electronic device (the electronic device in use by the user) through the Bluetooth connection management interface.
For example, as shown in fig. 5, when the associated area of the first icon 502 is the display area of the bluetooth connection management interface 501, the bluetooth connection management interface 501 displays the first icon 502, where the first icon 502 is an identity icon corresponding to the first electronic device 500. Besides, the bluetooth connection management interface 501 displays a first identifier 503 and a second icon 504, where the first identifier 503 is a connectable state identifier corresponding to the first bluetooth device 505, and the connectable state may include a state in which the bluetooth connection management interface is not connected to any electronic device and a state in which the bluetooth connection management interface is connected to an electronic device but is allowed to be switched to be connected to another electronic device. The second icon 504 is an identity icon corresponding to the second electronic device 506. The number of the second electronic devices may be multiple, and icons of any electronic device (including the first electronic device and the second electronic device) may be correspondingly distributed around the first identifier 503 according to the distance from the first bluetooth device 505.
Illustratively, as shown in fig. 5, in the bluetooth connection management interface 501, the first identifier 503 of the first bluetooth device 505 is located at a circle center position, the periphery of the first identifier 503 includes at least one circle with the first identifier 503 as a circle center, and each electronic device around the first bluetooth device 505 is displayed on the corresponding circle according to the distance from the first bluetooth device 505. For example, if the first electronic device 500 is closer to the first bluetooth device 505 and the second electronic device 506 is farther from the first bluetooth device 505, the radius of the circle where the first icon 502 is located is smaller than the radius of the circle where the second icon 504 is located.
It should be understood that the electronic device identity icons displayed on the bluetooth connection management interface all correspond to the electronic devices which are connected with the first bluetooth device in history pairing mode.
Different icons and marks can be distinguished through different patterns, characters, colors and the like. And each icon or identifier can distinguish whether the corresponding device is in a connected state or an unconnected state through color, brightness, transparency and the like.
In this example, when the first electronic device detects the communication signal sent by the first bluetooth device through step S101, a bluetooth connection management interface is displayed, where the first identifier, the first icon, and the second icon are displayed in the bluetooth connection management interface.
It should be understood that at this point the first electronic device is in the connectable range of the first bluetooth device and the first electronic device is in the unlocked state.
At this time, it can be represented that the first bluetooth device and the first electronic device are both in the unconnected state by the color, brightness, and the like of the first identifier and the second icon. A first input to the first icon, which may be a click input, may then be received through step S102.
Correspondingly, in step S103, in response to the click input of the first icon, the first icon corresponding to the first electronic device is connected to the first bluetooth device.
After the connection is established, the corresponding first identifier and the corresponding first icon can identify the Bluetooth connection established between the first electronic device and the first Bluetooth device through modes of color deepening, color changing or brightness increasing and the like. And after a period of time (e.g., 5 seconds), the bluetooth connection management interface automatically disappears.
For example, after the bluetooth connection management interface disappears, the bluetooth connection management interface may be triggered to be displayed on the first electronic device again by performing gesture operation on the first bluetooth device. For example, when the first bluetooth device is a bluetooth headset, by tapping the bluetooth headset, the bluetooth connection management interface is triggered to be displayed on the first electronic device.
In a case where the bluetooth connection management interface is displayed and the first electronic device is in a connected state with the first bluetooth device, if an input (e.g., a click input) to the first identifier or the first icon is received again, the first electronic device may disconnect from the first bluetooth device in response to the input.
The Bluetooth connection management is carried out through the Bluetooth connection management interface, so that the connection and disconnection between the electronic equipment and the Bluetooth equipment can be controlled more flexibly and conveniently.
In order to facilitate the switching operation of the bluetooth connection, optionally, in this embodiment of the application, the connection currently established with the first bluetooth device may be directly transferred to another electronic device through the bluetooth connection management interface.
In this example, after the first bluetooth device is connected in step S103, in the case of displaying a bluetooth connection management interface, the connection method according to the embodiment of the present application may further include steps S401 to S403:
s401, under the condition that a communication signal sent by second electronic equipment is detected, displaying a second icon in an area associated with the first icon, wherein the second icon is an identity icon corresponding to the second electronic equipment.
And under the condition that a communication signal sent by the second electronic device is detected, displaying a second icon on the Bluetooth connection management interface to prompt the user that other electronic devices capable of switching Bluetooth connection are currently detected.
S402, receiving a second input of the second icon;
s403, responding to the second input, and indicating the first Bluetooth device to establish connection with a second electronic device.
The second input may be a click input of the user on the screen of the first electronic device, or a voice instruction input by the user, or a specific gesture or an air-gap gesture input by the user, which may be determined according to actual usage requirements, and this embodiment does not limit this.
When a user wants to switch the connection between the first electronic device and the first bluetooth device to the second electronic device, so that the second electronic device is connected with the first bluetooth device, the user can operate on a bluetooth connection management interface displayed by the first electronic device, select a second icon corresponding to the second electronic device, input a second input aiming at the second icon, and instruct the first bluetooth device to be connected with the second electronic device while the first electronic device is disconnected with the first bluetooth device. Therefore, the Bluetooth connection management interface based on one electronic device can control the Bluetooth connection to be switched to other electronic devices, and the operation is convenient and fast.
In order to facilitate that the user can still continue to use the same bluetooth device to output information before the switching after switching the bluetooth connected device, optionally, in this embodiment of the present application, step S403 may specifically include steps S4031 to S4032:
s4031, responding to the second input, and sending target data of the first application to the second electronic equipment; and
and S4032, the first Bluetooth device is indicated to be connected with the second electronic device, so that the target data on the second electronic device is output through the first Bluetooth device.
In response to the second input, the first electronic device transmits target data that needs to be output by the first Bluetooth device to the second electronic device. For example, a music App on the first electronic device plays music content through the first bluetooth device (e.g., bluetooth headset), and in response to the second input, the first electronic device packages the music content into a target data packet and sends the target data packet to the second electronic device. The target data may be data to be output by the first bluetooth device, or may also be internet address data corresponding to the data to be output by the first bluetooth device, which is not limited in this embodiment of the application.
When target data is transmitted between the first electronic device and the second electronic device, the two electronic devices may transmit directly based on a Wi-Fi network, a mobile cellular network, a bluetooth network, or the like, or may transmit directly based on other networks, which is not limited in the embodiment of the present application.
The first electronic device may instruct the first bluetooth device to establish a connection with the second electronic device while transmitting the target data to the second electronic device, and then the first electronic device disconnects from the first bluetooth device.
And after the second electronic equipment is connected with the first Bluetooth equipment, the analyzed target data is restored to a state to be output and is output through the first Bluetooth equipment.
In the embodiment of the application, the connection with the Bluetooth equipment, the switching of the connection and the transfer of output data can be realized through the Bluetooth management interface on the electronic equipment, and the operation is convenient. In addition, in the process of switching connection between different electronic devices and the Bluetooth device, the first electronic device can transfer target data output by the first Bluetooth device to the second electronic device for continuous output after switching connection of the Bluetooth device, seamless connection of data output among different electronic devices is achieved, and user experience is greatly improved.
In order to simplify the bluetooth connection switching operation between the electronic devices, optionally, in this embodiment of the application, the motion trajectory of the electronic device may be obtained and the switching operation may be performed through a gesture operation performed on the electronic device by a user.
In this example, after the connection is established between the first electronic device and the first bluetooth device through steps S101 to S103, the method may further include steps S501 to S502:
s501, obtaining a first motion track of the first electronic device and a first motion track of the second electronic device.
The first motion trajectory includes a motion trajectory of the first electronic device and a motion trajectory of the second electronic device.
When a user wants to transfer the connection between the first electronic device and the first bluetooth device to the second electronic device, the user can perform corresponding movement through gesture operation on the two electronic devices and acquire movement tracks of the two electronic devices under the condition that the second electronic device is connected with the first bluetooth device.
The motion track may be a moving track, a turning track, a shaking track, and the like, and the embodiment of the present application is not limited.
The respective motion tracks of the electronic devices can be determined by sensors in the corresponding devices, and the sensors can include a three-axis gyroscope, a three-axis accelerometer, a three-axis electronic compass and the like. The motion track of the first electronic equipment can be determined by a sensor which is arranged on the first electronic equipment; after the motion trail of the second electronic device can be determined by a sensor of the second electronic device, the motion trail information of the second electronic device is transmitted to the first electronic device through a Wi-Fi network, a mobile cellular network, a Bluetooth network and the like.
In some examples, the motion trajectory of the second electronic device may also be captured and determined by the first bluetooth device and then transmitted to the first electronic device, for example, the first bluetooth device may determine whether the second electronic device moves relative to the first bluetooth device by sensing the intensity of the bluetooth signal of the second electronic device.
S502, under the condition that the first motion track meets the preset motion track, the first Bluetooth device is indicated to be connected with the second electronic device, and the first Bluetooth device is disconnected.
And under the condition that the first motion trail meets the preset motion trail, the first electronic equipment automatically disconnects from the first Bluetooth equipment and indicates the first Bluetooth equipment to be connected with the second electronic equipment. Therefore, the electronic equipment does not need to be unlocked for input operation, and the connection transfer can be completed directly through gesture operation of the user on the electronic equipment.
For example, as shown in fig. 6, in step S501, the method may specifically include:
under the condition that the first electronic device 600 and the second electronic device 601 are located at the same position, acquiring a motion track of the first electronic device or the second electronic device; wherein the content of the first and second substances,
if the motion trail is determined to be the situation that after the first electronic device 600 and the second electronic device 601 move together towards the first bluetooth device 602 for a first distance, the first electronic device 600 and the second electronic device 601 move together away from the first bluetooth device 602 for a second distance, the motion trail of the two electronic devices (600,601) moving together for the first distance and then moving for the second distance is determined as a first motion trail, and the first motion trail can be determined to meet the preset motion trail.
This first motion trail satisfies and predetermines the motion trail, therefore first electronic equipment 600 instructs first bluetooth equipment 602 to be connected with second electronic equipment 601, and automatic disconnection and first bluetooth equipment 602's connection, thereby avoided carrying out the operation of bluetooth connection disconnection on an electronic equipment and carrying out the operation that the bluetooth connection was established at another electronic equipment, directly make its motion trail that accords with the condition of predetermineeing through the gesture action of carrying on to two electronic equipment, can high-efficient swift completion bluetooth connection's switching.
It should be understood that in this example, the first electronic device and the second electronic device are both historical paired electronic devices connected to the first bluetooth device. Moreover, the electronic device is close to or far away from the bluetooth device, and can be determined by matching the electronic device with positioning devices on the bluetooth device, and can also be determined according to the strength of a transmission signal between the electronic device and the bluetooth device, which is not repeated in the embodiment of the application.
In some other embodiments of the present application, when there are multiple electronic devices around the first bluetooth device, after the first bluetooth device is turned on, the electronic device (first electronic device) being used by the user may send information that the electronic device is in an unlocked state to the first bluetooth device, so that if only one electronic device in an unlocked state exists around the first bluetooth device, the electronic device may be directly connected to the electronic device, thereby preventing misconnection of the bluetooth device.
If a plurality of electronic devices in the unlocked state are around the first bluetooth device, the first bluetooth device may send a specific communication signal to the electronic device in the unlocked state, and instruct the corresponding electronic device to acquire feature information (such as a human face, a fingerprint, and the like) of the user, so as to determine the electronic device that the user is using and wants to connect to the bluetooth device.
For example, when the first electronic device in the unlocked state detects a communication signal sent by the first bluetooth device through step S101, the first identifier is displayed in the area associated with the first icon according to the communication signal. The first icon may be an application icon for triggering an operation of collecting user characteristic information.
Correspondingly, after receiving the first input of the first icon by the user in step S102, connecting the first bluetooth device in response to the first input in step S103 may specifically include steps S601 to S603:
s601, responding to the first input, and acquiring user characteristic information.
The user characteristic credit may include a user face, a fingerprint, and the like. The collection of the user characteristic information can be completed by calling a camera or a fingerprint collector of the electronic equipment.
S602, sending the user characteristic information and the connection request to a first Bluetooth device;
and S603, under the condition that a response message sent by the first Bluetooth device according to the user characteristic information and the connection request is obtained, establishing connection with the first Bluetooth device.
The first electronic device sends the collected user characteristic information and the connection request to the first Bluetooth device, after receiving the user characteristic information, the first Bluetooth device can judge that the electronic device is the electronic device used by the user, and then can respond to the connection request, and after receiving the corresponding response message, the first electronic device establishes connection with the first Bluetooth device.
According to the embodiment of the application, the electronic equipment used by the user is judged by collecting the characteristic information of the user, so that the Bluetooth equipment can be accurately connected to the electronic equipment, the Bluetooth equipment is prevented from being mistakenly connected when a plurality of electronic equipment exist, and the user experience is improved.
For example, after receiving the user feature information, the first bluetooth device may perform consistency matching on the information and the locally stored user feature data, and in case of consistency matching, determine that the first electronic device is an electronic device being used by the corresponding user, and then may respond to a connection request of the first electronic device.
Or, after receiving the user feature information, the first bluetooth device only determines whether the information is human body feature information, for example, determines whether the information is human face information or human fingerprint information, thereby determining whether the first electronic device is used by the user, and if so, may respond to the connection request of the first electronic device.
For example, in the embodiment of the present application, when the bluetooth device identifies and determines the user feature information, a mature biometric information identification algorithm in the field may be used for implementation, and details are not described here.
It should be noted that, the embodiment of the present application provides a connection method, and the execution main body may be a connection device, or a control module in the connection device for executing the connection method. In the embodiment of the present application, a connection device executing a connection method is taken as an example, and the connection device provided in the embodiment of the present application is described.
Fig. 7 shows a schematic view of a connection device in another embodiment of the present application. The connection apparatus may be applied to a first electronic device, and as shown in fig. 7, the apparatus may include:
a first display module 701, configured to, when a communication signal sent by a first bluetooth device is detected, display a first identifier in an area associated with a first icon, where the first identifier is a connectable state identifier of the first bluetooth device;
a first receiving module 702, configured to receive a first input for the first identifier or for the first icon;
a first connection module 703, configured to connect to the first bluetooth device in response to the first input, and output information associated with the first icon by using the first bluetooth device.
Illustratively, the first Bluetooth device may be any one of a headset, a sound box, a printer, a projector, a display, and a peripheral output device having a Bluetooth (Bluetooth) function.
The communication signal of the first bluetooth device may be a signal for indicating that the bluetooth device is in an on state, or may be a signal for indicating that the bluetooth device is in a connectable state. In some examples, the connectable state may include a state in which the bluetooth device is turned on and is not connected to any electronic device, and may also include a state in which the bluetooth device is turned on and is already connected to a certain electronic device, but is allowed to switch to be connected to another electronic device.
The communication signal of the first bluetooth device may be sent when the bluetooth device is turned on, or sent after the bluetooth device is disconnected from any electronic device, or continuously sent while the bluetooth device is in an on state.
The first icon may be an application icon displayed on the desktop of the first electronic device, or may be an icon representing the identity of the first electronic device.
The first Bluetooth device is a Bluetooth device which is in historical pairing connection with the first electronic device, and the first mark is displayed in the area associated with the first icon under the condition that the first electronic device detects the communication signal of the first Bluetooth device.
The first input may be a click input of the user on the screen of the first electronic device, or a voice instruction input by the user, or a specific gesture or an air-gap gesture input by the user, which may be determined according to actual usage requirements, and this embodiment does not limit this.
The first electronic device initiates connection with the first Bluetooth device after receiving the first input of the user, so that when a plurality of electronic devices are around the first Bluetooth device, the electronic device in use by the user can be determined through the first input of the first identifier by the user, and the connection with the Bluetooth device is established in response to the first input.
The first electronic device initiates connection with the first bluetooth device after receiving a first input of a user, so that when a plurality of electronic devices are around the first bluetooth device, the electronic device in use by the user is determined through the first input of a first identifier or a first icon by the user, and the connection with the bluetooth device is established in response to the first input, and after the connection is established, information associated with the first icon can be output by using the first bluetooth device, for example, if the first icon is an application icon, multimedia data (such as audio data of a music App, video data of the video App, picture data of a picture player, and the like) corresponding to the application program can be output, and if the first icon is an identity icon of the first electronic device, some data information on the first electronic device can be output.
In the embodiment of the application, the first electronic device initiates the connection to the bluetooth device when the first bluetooth device is in a connectable state and receives the corresponding input of the user, so that the first bluetooth device can be prevented from being connected to other electronic devices by mistake, the bluetooth device is connected with the correct electronic device (namely, the first electronic device) quickly and efficiently, the operation is convenient, and the operation experience of the user is improved.
Optionally, in order to more accurately meet the requirement of the user for using the bluetooth device, one or more apps (applications) may be preset, so that when the user opens the preset apps, the electronic device and the bluetooth device automatically establish a connection. Correspondingly, the first icon may be an application icon of a first application, the first application may be a preset App, and the first icon may be displayed on a desktop of the electronic device.
Correspondingly, the first display module 701 may specifically be configured to:
and under the condition that a communication signal sent by the first Bluetooth device is detected, displaying a first identifier in association with an area where a first icon on the desktop is located.
A first icon is displayed on the desktop of the electronic equipment, and the area where the first icon is located can be the upper left corner, the upper right corner, the lower left corner, the lower right corner and the like of the icon.
The first identifier may be a connectable state identifier that the first bluetooth device is not connected to any electronic device. The first indication may be represented by a pattern, text, color, or the like.
Correspondingly, the first connection module 703 may specifically include:
the first connection sub-module 7031 is configured to, in response to the first input, open a first application corresponding to the first icon and connect the first bluetooth device at the same time;
a first output sub-module 7032, configured to output the multimedia data through the first bluetooth device when the multimedia data is played through the first application.
Since the first indicator is associated with a location of the local area displayed on the first icon, an input to the first indicator (e.g., a tap gesture) is also equivalent to an input to the first icon. And responding to a first input of the first icon or the first identifier, and opening the corresponding App and simultaneously establishing connection with the first Bluetooth device. And if the user wants to play the multimedia data through the first application, the multimedia data is output through the first Bluetooth equipment after the connection is established. Therefore, the Bluetooth device can be automatically connected when the user starts the preset App needing to use the Bluetooth device, so that the Bluetooth device is prevented from being automatically connected with other electronic devices by mistake, and the multimedia data information of the corresponding App is output after connection, so that the user requirements are accurately met.
Optionally, in order to meet the requirement that the user opens an App that needs to use the bluetooth device and connect the bluetooth device, and improve the flexibility of operation, in this embodiment of the application, the first icon may be an application icon displayed on a desktop of the electronic device, and the first identifier may be displayed through a hover ball displayed on the desktop.
Correspondingly, the first connection module 703 may include:
a moving sub-module 7031 for, in a case where the first input is a slide input to the first identifier, moving the first identifier to overlap with the first icon in response to the first input;
and the first connection sub-module 7032 is configured to open the first application corresponding to the first icon and connect to the first bluetooth device at the same time.
At this time, the first icon is an icon corresponding to the App which the user wants to open.
After the first identifier is overlapped with the first icon, triggering the operation of opening the first application, and simultaneously connecting the first Bluetooth device. For example, when the floating ball moves to the first icon, the first application is triggered to start, and the first electronic device is connected to the first bluetooth device, so that the information related to the first application can be output by using the first electronic device 403.
Therefore, the App needing to use the Bluetooth equipment does not need to be preset, the user directly moves the first identifier to the corresponding icon, the application program which the user wants to run and needs to use the first Bluetooth equipment is opened, and meanwhile, the connection with the first Bluetooth equipment is established. The user connection operation is more flexible and convenient.
For example, in order to adapt to a situation that there are multiple electronic devices around the first bluetooth device (generally within 10 meters), the connection situation of the first bluetooth device can be known more intuitively, so that the user can perform a connection or connection switching operation, optionally, in this embodiment of the application, the first icon may be an identity icon corresponding to the first electronic device, and the associated area of the first icon may be an area where the bluetooth connection management interface is located. Therefore, connection and switching with the Bluetooth device can be completed on any electronic device (the electronic device in use by the user) through the Bluetooth connection management interface.
Illustratively, when the association area of the first icon is a display area of the bluetooth connection management interface, the bluetooth connection management interface displays the first icon, where the first icon is an identity icon corresponding to the first electronic device. In addition, a first identifier and a second icon are displayed on the bluetooth connection management interface, wherein the first identifier is a connectable state identifier corresponding to the first bluetooth device, and the connectable state may include a state in which the bluetooth connection management interface is not connected to any electronic device and a state in which the bluetooth connection management interface is connected to one electronic device but is allowed to be switched to be connected to another electronic device. The second icon is an identity icon corresponding to the second electronic device. The second electronic device may be multiple, and icons of any electronic device (including the first electronic device and the second electronic device) may be correspondingly distributed around the first identifier according to the distance from the first bluetooth device.
In this example, when the first electronic device detects a communication signal sent by the first bluetooth device, a bluetooth connection management interface is displayed, where the first identifier, the first icon, and the second icon are displayed in the bluetooth connection management interface. A connection with the first bluetooth device may then be established through the first display module 701, the first receiving module 702, and the first connecting module 703.
After the connection is established, the corresponding first identifier and the corresponding first icon can identify the Bluetooth connection established between the first electronic device and the first Bluetooth device through modes of color deepening, color changing or brightness increasing and the like. And after a period of time (e.g., 5 seconds), the bluetooth connection management interface automatically disappears.
For example, after the bluetooth connection management interface disappears, the bluetooth connection management interface may be triggered to be displayed on the first electronic device again by performing gesture operation on the first bluetooth device. For example, when the first bluetooth device is a bluetooth headset, by tapping the bluetooth headset, the bluetooth connection management interface is triggered to be displayed on the first electronic device.
In a case where the bluetooth connection management interface is displayed and the first electronic device is in a connected state with the first bluetooth device, if an input (e.g., a click input) to the first identifier or the first icon is received again, the first electronic device may disconnect from the first bluetooth device in response to the input.
The Bluetooth connection management is carried out through the Bluetooth connection management interface, so that the connection and disconnection between the electronic equipment and the Bluetooth equipment can be controlled more flexibly and conveniently.
In order to facilitate the switching operation of the bluetooth connection, optionally, in this embodiment of the application, the connection currently established with the first bluetooth device may be directly transferred to another electronic device through the bluetooth connection management interface. In this example, the apparatus may further include:
a second display module 704, configured to display a second icon in an area associated with the first icon when a communication signal sent by a second electronic device is detected, where the second icon is an identity icon corresponding to the second electronic device;
a second receiving module 705, configured to receive a second input to the second icon;
a first indication module 706, configured to indicate, in response to the second input, that the first bluetooth device establishes a connection with a second electronic device.
When a user wants to switch the connection between the first electronic device and the first bluetooth device to the second electronic device, so that the second electronic device is connected with the first bluetooth device, the user can operate on a bluetooth connection management interface displayed by the first electronic device, select a second icon corresponding to the second electronic device, input a second input aiming at the second icon, and instruct the first bluetooth device to be connected with the second electronic device while the first electronic device is disconnected with the first bluetooth device. Therefore, the Bluetooth connection management interface based on one electronic device can control the Bluetooth connection to be switched to other electronic devices, and the operation is convenient and fast.
In order to facilitate that the user can still continue to output the information before the switching by using the same bluetooth device after switching the bluetooth connected device, optionally, in this embodiment of the present application, the first indication module 706 may include:
a first sending submodule 7061, configured to send, in response to the second input, target data of the first application to the second electronic device; and
the first indicating submodule 7062 is configured to indicate the first bluetooth device to establish a connection with a second electronic device, so as to output the target data on the second electronic device through the first bluetooth device.
In response to the second input, the first electronic device transmits target data that needs to be output by the first Bluetooth device to the second electronic device. For example, a music App on the first electronic device plays music content through the first bluetooth device (e.g., bluetooth headset), and in response to the second input, the first electronic device packages the music content into a target data packet and sends the target data packet to the second electronic device. The target data may be data to be output by the first bluetooth device, or may also be internet address data corresponding to the data to be output by the first bluetooth device, which is not limited in this embodiment of the application.
When target data is transmitted between the first electronic device and the second electronic device, the two electronic devices may transmit directly based on a Wi-Fi network, a mobile cellular network, a bluetooth network, or the like, or may transmit directly based on other networks, which is not limited in the embodiment of the present application.
The first electronic device sends the target data to the second electronic device, and simultaneously indicates the first Bluetooth device to be connected with the second electronic device, and then the first electronic device is disconnected with the first Bluetooth device.
And after the second electronic equipment is connected with the first Bluetooth equipment, the analyzed target data is restored to a state to be output and is output through the first Bluetooth equipment.
In the embodiment of the application, the connection with the Bluetooth equipment, the switching of the connection and the transfer of output data can be realized through the Bluetooth management interface on the electronic equipment, and the operation is convenient. In addition, in the process of switching connection between different electronic devices and the Bluetooth device, the first electronic device can transfer target data output by the first Bluetooth device to the second electronic device for continuous output after switching connection of the Bluetooth device, seamless connection of data output among different electronic devices is achieved, and user experience is greatly improved.
In order to simplify the bluetooth connection switching operation between the electronic devices, in the embodiment of the application, the motion trajectory of the electronic device may be identified and the switching operation may be performed by a gesture operation performed on the electronic device by a user. Optionally, the apparatus may further include:
a first obtaining module 707, configured to obtain a first motion trajectory of the first electronic device and the second electronic device after the first electronic device and the first bluetooth device are connected;
the second indicating module 708 is configured to indicate that the first bluetooth device is connected to the second electronic device and disconnect the first bluetooth device when the first motion trajectory meets the preset motion trajectory.
The first motion trajectory includes a motion trajectory of the first electronic device and a motion trajectory of the second electronic device.
When a user wants to transfer the connection between the first electronic device and the first bluetooth device to the second electronic device, the user can perform corresponding movement through gesture operation on the two electronic devices and acquire movement tracks of the two electronic devices under the condition that the second electronic device is connected with the first bluetooth device.
The motion track may be a moving track, a turning track, a shaking track, and the like, and the embodiment of the present application is not limited.
The respective motion tracks of the electronic devices can be determined by sensors in the corresponding devices, and the sensors can include a three-axis gyroscope, a three-axis accelerometer, a three-axis electronic compass and the like. The motion track of the first electronic equipment can be determined by a sensor which is arranged on the first electronic equipment; after the motion trail of the second electronic device can be determined by a sensor of the second electronic device, the motion trail information of the second electronic device is transmitted to the first electronic device through a Wi-Fi network, a mobile cellular network, a Bluetooth network and the like.
In some examples, the motion trajectory of the second electronic device may also be captured and determined by the first bluetooth device and then transmitted to the first electronic device, for example, the first bluetooth device may determine whether the second electronic device moves relative to the first bluetooth device by sensing the intensity of the bluetooth signal of the second electronic device.
And under the condition that the first motion trail meets the preset motion trail, the first electronic equipment indicates the first Bluetooth equipment to be connected with the second electronic equipment, and the first Bluetooth equipment is automatically disconnected. Therefore, the electronic equipment does not need to be unlocked for input operation, and the connection transfer can be completed directly through gesture operation of the user on the electronic equipment.
Illustratively, the first obtaining module 707 is specifically configured to:
under the condition that a first electronic device and a second electronic device are located at the same position, acquiring a motion track of the first electronic device or the second electronic device; wherein the content of the first and second substances,
if the motion trail is determined to be the situation that the first electronic device and the second electronic device move towards the first Bluetooth device together for a first distance and then move away from the first Bluetooth device together for a second distance, the motion trail of the second electronic device moving for the second distance after moving the two electronic devices together for the first distance is determined as the first motion trail, and the first motion trail can be determined to meet the preset motion trail.
This first movement track satisfies predetermineeing the movement track, therefore first electronic equipment instructs first bluetooth equipment to be connected with second electronic equipment, and automatic disconnection and the connection of first bluetooth equipment, thereby avoided carrying out the operation that the bluetooth is connected the disconnection on an electronic equipment and carrying out the operation that the bluetooth is connected and is established at another electronic equipment, directly make its motion track that accords with the condition of predetermineeing through the gesture action of carrying on to two electronic equipment, can the high-efficient swift completion bluetooth switch of connecting.
It should be understood that in this example, the first electronic device and the second electronic device are both historical paired electronic devices connected to the first bluetooth device. Moreover, the electronic device approaches the bluetooth device or the principle can be determined by the electronic device and the positioning device on the bluetooth device, or can determine the strength of the transmission signal between the electronic device and the bluetooth device, which is not repeated in the embodiment of the present application.
In some other embodiments of the present application, when there are multiple electronic devices around the first bluetooth device, after the first bluetooth device is turned on, the electronic device (first electronic device) being used by the user may send information that the electronic device is in an unlocked state to the first bluetooth device, so that if only one electronic device in an unlocked state exists around the first bluetooth device, the electronic device may be directly connected to the electronic device, thereby preventing misconnection of the bluetooth device.
If a plurality of electronic devices in the unlocked state are around the first bluetooth device, the first bluetooth device may send a specific communication signal to the electronic device in the unlocked state, and instruct the corresponding electronic device to acquire feature information (such as a human face, a fingerprint, and the like) of the user, so as to determine the electronic device that the user is using and wants to connect to the bluetooth device.
Optionally, when the first electronic device in the unlocked state detects a communication signal sent by the first bluetooth device through the first display module 701, the first identifier is displayed in the area associated with the first icon according to the communication signal. The first icon may be an application icon for triggering an operation of collecting user characteristic information.
Correspondingly, the first connection module 703 may specifically include:
the obtaining sub-module 7034 is configured to, in a case where the first input is an input to the first icon, obtain the user characteristic information in response to the first input.
The user characteristic credit may include a user face, a fingerprint, and the like. The collection of the user characteristic information can be completed by calling a camera or a fingerprint collector of the electronic equipment.
A second sending submodule 7035, configured to send the user feature information and the connection request to the first bluetooth device;
the second connection sub-module 7036 is configured to establish a connection with the first bluetooth device when a response message sent by the first bluetooth device according to the user feature information and the connection request is obtained.
The first electronic device sends the collected user characteristic information and the connection request to the first Bluetooth device, after receiving the user characteristic information, the first Bluetooth device can judge that the electronic device is the electronic device used by the user, and then can respond to the connection request, and after receiving the corresponding response message, the first electronic device establishes connection with the first Bluetooth device.
According to the embodiment of the application, the electronic equipment used by the user is judged by collecting the characteristic information of the user, so that the Bluetooth equipment can be accurately connected to the electronic equipment, the Bluetooth equipment is prevented from being mistakenly connected when a plurality of electronic equipment exist, and the user experience is improved.
The 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 Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The 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 connection device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 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 not repeated here.
The radio frequency unit 901 is configured to detect a communication signal sent by a first bluetooth device;
a display unit 906, configured to display a first identifier in an area associated with a first icon when a communication signal sent by a first bluetooth device is detected, where the first identifier is a connectable state identifier of the first bluetooth device;
a user input unit 907 for receiving a first input for the first identifier or the first icon;
a processor 910, configured to connect to the first bluetooth device in response to the first input, and output information associated with the first icon by using the first bluetooth device.
The first electronic device initiates connection with the first bluetooth device after receiving a first input of a user, so that when a plurality of electronic devices are around the first bluetooth device, the electronic device in use by the user is determined through the first input of a first identifier or a first icon by the user, and the connection with the bluetooth device is established in response to the first input, and after the connection is established, information associated with the first icon can be output by using the first bluetooth device, for example, if the first icon is an application icon, multimedia data (such as audio data of a music App, video data of the video App, picture data of a picture player, and the like) corresponding to the application program can be output, and if the first icon is an identity icon of the first electronic device, some data information on the first electronic device can be output.
In the embodiment of the application, the first electronic device initiates the connection to the bluetooth device when the first bluetooth device is in a connectable state and receives the corresponding input of the user, so that the first bluetooth device can be prevented from being connected to other electronic devices by mistake, the bluetooth device is connected with the correct electronic device (namely, the first electronic device) quickly and efficiently, the operation is convenient, and the operation experience of the user is improved.
Optionally, the first icon may be an application icon of a first application, the first application may be a preset App, and the first icon may be displayed on a desktop of the electronic device.
The display unit 906 may be specifically configured to: and under the condition that a communication signal sent by the first Bluetooth device is detected, displaying a first identifier in association with an area where a first icon on the desktop is located.
The first identifier may be a connectable state identifier that the first bluetooth device is not connected to any electronic device. The first indication may be represented by a pattern, text, color, or the like.
Processor 910 may be specifically configured to:
responding to the first input, opening a first application corresponding to the first icon, and connecting a first Bluetooth device;
and outputting the multimedia data through the first Bluetooth equipment under the condition that the multimedia data are played through the first application.
Therefore, the Bluetooth device can be automatically connected when the user starts the preset App needing to use the Bluetooth device, so that the Bluetooth device is prevented from being automatically connected with other electronic devices by mistake, and the multimedia data information of the corresponding App is output after connection, so that the user requirements are accurately met.
Optionally, the first icon may be an application icon displayed on the desktop by the electronic device, and the first identifier may be displayed by a hover ball displayed on the desktop.
Processor 910 may be specifically configured to:
in a case where the first input is a slide input to the first identifier, moving the first identifier to overlap with the first icon in response to the first input;
and opening a first application corresponding to the first icon, and connecting the first Bluetooth equipment.
After the first identifier is overlapped with the first icon, triggering the operation of opening the first application, and simultaneously connecting the first Bluetooth device. For example, when the floating ball moves to the first icon, the first application is triggered to start, and meanwhile, the first electronic device is connected with the first Bluetooth device, so that the related information of the first application can be output by the first electronic device.
Therefore, the App needing to use the Bluetooth equipment does not need to be preset, the user can directly move the first identifier to the corresponding icon, the application program which the user wants to operate and needs to use the first Bluetooth equipment to output information is opened, meanwhile, the connection with the first Bluetooth equipment is established, and the user connection operation is more flexible and convenient.
Optionally, the first icon may be an identity icon corresponding to the first electronic device, and the associated area of the first icon may be an area where the bluetooth connection management interface is located.
And when the associated area of the first icon is the display area of the Bluetooth connection management interface, displaying the first icon on the Bluetooth connection management interface, wherein the first icon is an identity icon corresponding to the first electronic equipment. In addition, a first identifier and a second icon are displayed on the bluetooth connection management interface, where the first identifier 503 is a connectable state identifier corresponding to the first bluetooth device, and the connectable state may include a state in which the bluetooth connection management interface is not connected to any electronic device and a state in which the bluetooth connection management interface is connected to some electronic device but is allowed to be switched to be connected to another electronic device. The second icon is an identity icon corresponding to the second electronic device. The second electronic device may be multiple, and icons of any electronic device (including the first electronic device and the second electronic device) may be correspondingly distributed around the first identifier according to the distance from the first bluetooth device.
The display unit 906 displays a bluetooth connection management interface in which the first identifier, the first icon, and the second icon are displayed when the electronic device detects a communication signal sent by the first bluetooth device. The first icon corresponding to the first electronic device can be connected with the first Bluetooth device in response to clicking input of the first icon.
Optionally, the display unit 906 may be configured to:
under the condition that a communication signal sent by second electronic equipment is detected, displaying a second icon in an area associated with the first icon, wherein the second icon is an identity icon corresponding to the second electronic equipment;
the user input unit 907 may be used to:
receiving a second input to the second icon;
processor 910 may be configured to: and responding to the second input, and indicating the first Bluetooth device to establish connection with a second electronic device.
When a user wants to switch the connection between the first electronic device and the first bluetooth device to the second electronic device, so that the second electronic device is connected with the first bluetooth device, the user can operate on a bluetooth connection management interface displayed by the first electronic device, select a second icon corresponding to the second electronic device, input a second input aiming at the second icon, and instruct the first bluetooth device to be connected with the second electronic device while the first electronic device is disconnected with the first bluetooth device. Therefore, the Bluetooth connection management interface based on one electronic device can control the Bluetooth connection to be switched to other electronic devices, and the operation is convenient and fast.
Optionally, the processor 910 may be specifically configured to:
transmitting target data of the first application to the second electronic device in response to the second input; and
and indicating the first Bluetooth device to establish connection with the second electronic device so as to output the target data on the second electronic device through the first Bluetooth device.
In the embodiment of the application, the connection with the Bluetooth equipment, the switching of the connection and the transfer of output data can be realized through the Bluetooth management interface on the electronic equipment, and the operation is convenient. In addition, in the process of switching connection between different electronic devices and the Bluetooth device, the first electronic device can transfer target data output by the first Bluetooth device to the second electronic device for continuous output after switching connection of the Bluetooth device, seamless connection of data output among different electronic devices is achieved, and user experience is greatly improved.
Optionally, the processor 910 may be configured to:
acquiring a first motion track of first electronic equipment and a first motion track of second electronic equipment;
and under the condition that the first motion track meets the preset motion track, indicating the first Bluetooth equipment to be connected with the second electronic equipment, and disconnecting the first Bluetooth equipment from the first Bluetooth equipment.
When acquiring the first motion trajectory of the first electronic device and the second electronic device, the first motion trajectory may be acquired based on the sensor 905 and the network unit 902.
The first motion trajectory may include a moving trajectory, a turning trajectory, a shaking trajectory, and the like, and the embodiment of the present application is not limited.
The sensors 905 may include a three-axis gyroscope, a three-axis accelerometer, a three-axis electronic compass, and the like. The motion track of the first electronic device can be determined by a sensor 905 of the first electronic device; after the motion trail of the second electronic device can be determined by the sensor, the motion trail information of the second electronic device is transmitted to the network module 902 of the first electronic device through a Wi-Fi network, a mobile cellular network, a bluetooth network, and the like. The motion trail data acquired by the sensor 905 and the network module 902 are transmitted to the processor 910 for processing, and when it is determined that the first motion trail satisfies the preset motion trail, the first bluetooth device is indicated to be connected with the second electronic device, and the connection with the first bluetooth device is disconnected.
According to the embodiment of the application, the electronic equipment does not need to be unlocked for input operation, and connection transfer can be completed directly through gesture operation of a user on the electronic equipment.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 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 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiments of the present application further provide 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 program or the instruction implements the processes of the foregoing connection method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the connection method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
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 computer 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, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A connection method is applied to a first electronic device, and is characterized by comprising the following steps:
under the condition that a communication signal sent by a first Bluetooth device is detected, displaying a first identifier in an area associated with a first icon, wherein the first identifier is a connectable state identifier of the first Bluetooth device;
receiving a first input to the first identifier or to the first icon;
responding to the first input, connecting the first Bluetooth device, and outputting the information associated with the first icon by using the first Bluetooth device.
2. The method of claim 1, wherein the first icon is an application icon corresponding to a first application,
the responding to the first input, connecting the first Bluetooth device, and outputting the information associated with the first icon by using the first Bluetooth device includes:
responding to the first input, opening a first application corresponding to the first icon, and connecting the first Bluetooth equipment;
and outputting the multimedia data through the first Bluetooth equipment under the condition that the multimedia data are played through the first application.
3. The method of claim 1, wherein the first icon is an application icon corresponding to a first application, and wherein connecting the first bluetooth device in response to the first input comprises:
in the case that the first input is an input to the first identifier, moving the first identifier to overlap the first icon in response to the first input;
and opening a first application corresponding to the first icon, and connecting the first Bluetooth equipment.
4. The method of claim 1, wherein the first icon is an identity icon corresponding to the first electronic device, and wherein after said connecting the first bluetooth device in response to the first input, the method further comprises:
under the condition that a communication signal sent by second electronic equipment is detected, displaying a second icon in an area associated with the first icon, wherein the second icon is an identity icon corresponding to the second electronic equipment;
receiving a second input to the second icon;
in response to the second input, instructing the first Bluetooth device to establish a connection with the second electronic device.
5. The method of claim 4, wherein the information associated with the first icon includes target data corresponding to a first application, and wherein instructing the first Bluetooth device to establish a connection with the second electronic device in response to the second input comprises:
transmitting target data of the first application to the second electronic device in response to the second input; and
and instructing the first Bluetooth device to establish connection with the second electronic device so as to output the target data on the second electronic device through the first Bluetooth device.
6. The method of claim 1, wherein after said connecting the first Bluetooth device in response to the first input, the method further comprises:
acquiring first motion tracks of the first electronic equipment and the second electronic equipment;
and under the condition that the first motion trail meets a preset motion trail, indicating the first Bluetooth device to be connected with the second electronic device, and disconnecting the first Bluetooth device.
7. The method of claim 6, wherein the obtaining the first motion profile of the first electronic device and the second electronic device comprises:
under the condition that the first electronic device and the second electronic device are located at the same position, acquiring motion tracks of the first electronic device and the second electronic device;
and determining the motion trail as the first motion trail under the condition that the motion trail is a first distance after the first electronic device and the second electronic device move towards the first Bluetooth device together and then move away from the first Bluetooth device together for a second distance.
8. The method of claim 1, wherein said connecting the first Bluetooth device in response to the first input comprises:
responding to the first input, and acquiring user characteristic information;
sending the user characteristic information and a connection request to the first Bluetooth device;
and establishing connection with the first Bluetooth device under the condition of acquiring a response message sent by the first Bluetooth device according to the user characteristic information and the connection request.
9. A connecting device applied to a first electronic device, the device comprising:
the first display module is used for displaying a first identifier in an area associated with a first icon under the condition that a communication signal sent by first Bluetooth equipment is detected, wherein the first identifier is a connectable state identifier of the first Bluetooth equipment;
a first receiving module for receiving a first input to the first identifier or to the first icon;
and the first connecting module is used for responding to the first input, connecting the first Bluetooth equipment and outputting the information associated with the first icon by utilizing the first Bluetooth equipment.
10. 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 connection method according to any one of claims 1 to 8.
11. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the connection method according to any one of claims 1-8.
CN202210028333.XA 2022-01-11 2022-01-11 Connection method and device and electronic equipment Pending CN114390724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210028333.XA CN114390724A (en) 2022-01-11 2022-01-11 Connection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210028333.XA CN114390724A (en) 2022-01-11 2022-01-11 Connection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114390724A true CN114390724A (en) 2022-04-22

Family

ID=81201229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210028333.XA Pending CN114390724A (en) 2022-01-11 2022-01-11 Connection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114390724A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106063300A (en) * 2014-02-17 2016-10-26 三星电子株式会社 Display method and mobile device
WO2016182108A1 (en) * 2015-05-12 2016-11-17 엘지전자(주) Mobile terminal and method for controlling same
CN109890021A (en) * 2019-03-06 2019-06-14 西安易朴通讯技术有限公司 Bluetooth headset switching method, bluetooth headset and terminal
CN113055864A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Bluetooth connection method, device, storage medium and electronic equipment
CN113194450A (en) * 2021-05-06 2021-07-30 维沃移动通信有限公司 Bluetooth device management method and device
CN113316131A (en) * 2021-05-27 2021-08-27 Oppo广东移动通信有限公司 Connection establishing method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106063300A (en) * 2014-02-17 2016-10-26 三星电子株式会社 Display method and mobile device
WO2016182108A1 (en) * 2015-05-12 2016-11-17 엘지전자(주) Mobile terminal and method for controlling same
CN109890021A (en) * 2019-03-06 2019-06-14 西安易朴通讯技术有限公司 Bluetooth headset switching method, bluetooth headset and terminal
CN113055864A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Bluetooth connection method, device, storage medium and electronic equipment
CN113194450A (en) * 2021-05-06 2021-07-30 维沃移动通信有限公司 Bluetooth device management method and device
CN113316131A (en) * 2021-05-27 2021-08-27 Oppo广东移动通信有限公司 Connection establishing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9372617B2 (en) Object control method and apparatus of user device
CN111061574B (en) Object sharing method and electronic device
KR101790017B1 (en) Controlling Method For Communication Channel Operation based on a Gesture and Portable Device System supporting the same
CN109874312B (en) Method and device for playing audio data
CN105138123A (en) Device control method and device
US11553541B2 (en) Wi-fi connection method and device
US11250046B2 (en) Image viewing method and mobile terminal
CN110248251A (en) A kind of multi-medium play method and terminal device
CN112269505B (en) Audio and video control method and device and electronic equipment
CN110096203B (en) Screenshot method and mobile terminal
CN110971970B (en) Video processing method and electronic equipment
CN110944139B (en) Display control method and electronic equipment
KR20100097376A (en) Apparatus and method for controlling operation of portable terminal using different touch zone
CN111638822A (en) Icon operation method and device and electronic equipment
CN108052258B (en) Terminal task processing method, task processing device and mobile terminal
CN109683764B (en) Icon management method and terminal
CN111367444A (en) Application function execution method and device, electronic equipment and storage medium
CN108769206B (en) Data synchronization method, terminal and storage medium
CN111026321A (en) Touch control method and electronic equipment
KR20220154825A (en) How to create notes and electronic devices
JP2023511156A (en) Shooting method and electronic equipment
CN110493451B (en) Data transmission method, electronic equipment and terminal
CN112069350A (en) Song recommendation method, device, equipment and computer storage medium
CN108833679B (en) Object display method and terminal equipment
WO2023001027A1 (en) Task synchronization method and apparatus, device, and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination