CN115250545B - Bluetooth connection method, electronic equipment and chip system - Google Patents

Bluetooth connection method, electronic equipment and chip system Download PDF

Info

Publication number
CN115250545B
CN115250545B CN202211159219.7A CN202211159219A CN115250545B CN 115250545 B CN115250545 B CN 115250545B CN 202211159219 A CN202211159219 A CN 202211159219A CN 115250545 B CN115250545 B CN 115250545B
Authority
CN
China
Prior art keywords
bluetooth
type
electronic device
mobile phone
bluetooth connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211159219.7A
Other languages
Chinese (zh)
Other versions
CN115250545A (en
Inventor
覃博彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211159219.7A priority Critical patent/CN115250545B/en
Publication of CN115250545A publication Critical patent/CN115250545A/en
Application granted granted Critical
Publication of CN115250545B publication Critical patent/CN115250545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a Bluetooth connection method, electronic equipment and a chip system, and relates to the technical field of wireless communication; in the method, a master device monitors an event which represents that the master device is used by a user; after monitoring the event, the master device obtains the unique identifier of the slave device meeting the following conditions: the method comprises the steps that classical Bluetooth connection is established with a master device, classical Bluetooth connection does not exist between the current master device and the master device, the Bluetooth type is classical Bluetooth or dual-mode Bluetooth, and the device type is a first type, wherein the first type is a preset device type; after the unique identifier of the slave equipment is obtained, the master equipment broadcasts a Bluetooth connection request, wherein the Bluetooth connection request carries the unique identifier of the slave equipment; the classic bluetooth connection with the master device is restored for this uniquely identified slave device, by which method a bluetooth connection request is broadcast by the master device upon detection that the user will use the master device, thereby quickly restoring the classic bluetooth connection with the slave device.

Description

Bluetooth connection method, electronic equipment and chip system
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a bluetooth connection method, an electronic device, and a chip system.
Background
The wireless interconnection function between the electronic equipment is more and more powerful, can realize wireless connection through the bluetooth between the electronic equipment. For example, a user's sports watch acts as a slave device and the user's handset acts as a master device, and a bluetooth connection may be established between the master and slave devices. The motion data that user's motion wrist-watch gathered can be connected through the bluetooth and be synchronous to the cell-phone.
At present, wear the motion wrist-watch when the user and go out the motion, lead to the motion wrist-watch and stay behind the bluetooth connection disconnection of the cell-phone in at home, when the user motion finishes to wear the motion wrist-watch and gets back to again and look over the motion data through the cell-phone at home, the condition that the cell-phone can not in time show the motion data that the motion wrist-watch gathered often appears. The reason for this situation includes, by analysis, the inability of the sports watch and cell phone to timely resume a disconnected bluetooth connection.
Disclosure of Invention
In view of this, the present application provides a bluetooth connection method, an electronic device, and a chip system, which can improve the bluetooth connection speed between a master device and a slave device.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a bluetooth connection method, including:
the first electronic equipment monitors a first event, wherein the first event is a preset event used for indicating that the first electronic equipment is to be used by a user;
responding to a first event, acquiring a unique identifier of a first Bluetooth device by a first electronic device, wherein the first Bluetooth device is a Bluetooth device which establishes a classic Bluetooth connection with the first electronic device, does not have the classic Bluetooth connection with the first electronic device at present, has a Bluetooth type of classic Bluetooth or dual-mode Bluetooth and has a first type, and the first type is a preset device type for restoring the Bluetooth connection with the first electronic device;
the first electronic device broadcasts a Bluetooth connection request, the Bluetooth connection request carries the unique identifier of the first Bluetooth device, and the Bluetooth connection request is used for indicating the Bluetooth device with the unique identifier to recover the classic Bluetooth connection with the first electronic device based on the Bluetooth connection request.
In the application, the first electronic device is used as a master device to monitor an event indicating that the first electronic device is to be used by a user; after the first electronic device listens for the event, a unique identification (e.g., mac address) of a bluetooth device that satisfies the conditions (the classic bluetooth connection is established with the first electronic device, the classic bluetooth connection is not present with the first electronic device, the bluetooth type is classic bluetooth or dual mode bluetooth, and the device type is a first type) may be obtained. The first electronic equipment is used as main equipment to broadcast a connection request carrying the unique identifier; the method comprises the following steps that after the slave device with the device identification as the unique identification receives the request, the classic Bluetooth connection with the master device is recovered, and when the master device is detected to be used by a user, the master device broadcasts the Bluetooth connection request, so that the classic Bluetooth connection with the slave device is rapidly recovered.
As an implementation manner of the first aspect, before the first electronic device monitors the first event, the method further includes:
under the condition that classic Bluetooth connection is established between first electronic equipment and first Bluetooth equipment, the first electronic equipment monitors state change of classic Bluetooth connection between the first electronic equipment and the first Bluetooth equipment;
the first electronic device monitors disconnection of a classic Bluetooth connection with the first Bluetooth device;
in response to listening for a classic bluetooth disconnect with the first bluetooth device, the first electronic device listens for a first event.
In the method, the master device and the slave device can be started to monitor the first event after the classic Bluetooth connection is disconnected, so that the classic Bluetooth connection between the master device and the slave device is recovered after the first event is monitored, and the power consumption of the master device is reduced.
As another implementation manner of the first aspect, in response to listening for a classic bluetooth disconnection with a first bluetooth device, the first electronic device listens for a first event, including:
in response to the fact that the classic Bluetooth is disconnected with the first Bluetooth device, the first electronic device judges whether the Bluetooth type of the first Bluetooth device which is disconnected currently is classic Bluetooth or dual-mode Bluetooth or not and whether the device type is the first type or not;
if the currently disconnected Bluetooth type of the first Bluetooth device is classic Bluetooth or dual-mode Bluetooth and the device type is a first type, the first electronic device monitors a first event.
In the method, after the classic Bluetooth connection between the master device and the slave device is disconnected, the Bluetooth type of the slave device is determined to be classic Bluetooth or dual-mode Bluetooth, and the monitoring of the first event is started under the condition that the device type is the first type, so that the classic Bluetooth connection between the master device and the slave device is recovered after the first event is monitored. In this way, the power consumption of the master device can be further reduced, since it is only necessary for a slave device of a specific bluetooth type, a specific device type, to quickly resume the classic bluetooth connection.
As another implementation manner of the first aspect, the providing, by the first electronic device, an acceleration sensor and a gyroscope, and the monitoring, by the first electronic device, the first event includes:
the method comprises the steps that first electronic equipment obtains acceleration collected by an acceleration sensor and angular velocity collected by a gyroscope;
the first electronic device determines that the first electronic device has a lifting or turning action based on the acceleration and/or the angular velocity, and the first event comprises the lifting or turning action of the first electronic device.
In this application, the first event may be a lifting motion of the host device, and the lifting motion of the host device is generally a lifting or turning motion of the host device, and the lifting motion of the host device may be determined by an acceleration collected by the acceleration sensor, and the turning operation of the host device may be determined by an acceleration collected by the gyroscope.
As another implementation manner of the first aspect, the method further includes:
when the first electronic equipment establishes Bluetooth connection with the first Bluetooth equipment for the first time, the first electronic equipment acquires the Bluetooth type and the equipment type of the first Bluetooth equipment from the first Bluetooth equipment;
if the bluetooth type of the first bluetooth device is classic bluetooth or dual-mode bluetooth, and the device type of the first bluetooth device is the first type, the first electronic device stores the unique identifier, the bluetooth type, and the device type of the first bluetooth device in the unique identifier list.
In the method and the device, when the master device and the slave device establish Bluetooth connection for the first time, the unique identifier, the Bluetooth type and the device type of the slave device meeting the Bluetooth loop connection are stored in an associated mode, so that when classic Bluetooth connection is recovered, the unique identifier of the slave device meeting the requirement can be acquired.
As another implementation manner of the first aspect, in response to a first event, the acquiring, by the first electronic device, a unique identifier of the first bluetooth device includes:
in response to the first event, the first electronic device inquires from the unique identification list a unique identification corresponding to a Bluetooth device which has a Bluetooth type of classic Bluetooth or dual-mode Bluetooth and a device type of the first type and does not have classic Bluetooth connection with the first electronic device currently.
In the method, when the classic Bluetooth connection needs to be recovered, the unique identification of the slave device meeting the requirement can be searched from the information stored in the master device, and the master device can initiate the Bluetooth connection request according to the unique identification, so that the classic Bluetooth connection between the master device and the slave device can be recovered quickly.
As another implementation manner of the first aspect, after the first bluetooth device is a motion data acquisition device and the classic bluetooth connection between the first electronic device and the first bluetooth device is recovered, the method further includes:
the first electronic device receives the motion data sent by the first Bluetooth device through a classic Bluetooth connection with the first Bluetooth device;
the first electronic equipment updates display content of a first application of the first electronic equipment based on the received motion data, wherein the first application is used for displaying the received motion data.
The method and the device can be applied to a classic Bluetooth connection recovery scene between the main device and the motion data acquisition device, and the motion data acquisition device can send the latest acquired motion data to the main device after the classic Bluetooth connection between the main device and the motion data acquisition device is recovered. After the motion data is received by the master device, the display content may be refreshed based on the received motion data to display the motion data in time when the master device is used by the user.
As another implementation manner of the first aspect, the method further includes:
in response to the second event, the first electronic device displays a system desktop including a card of the first application, the card of the first application being used to display the received motion data.
As another implementation manner of the first aspect, if the currently disconnected first bluetooth device has a bluetooth type of classic bluetooth or dual-mode bluetooth, and the device type is a first type, the method further includes:
recording the unique identification of the first Bluetooth device;
correspondingly, in response to the first event, the first electronic device obtains the unique identifier of the first bluetooth device, including:
in response to the first event, the first electronic device acquires the unique identifier of the latest recorded Bluetooth device, wherein the unique identifier of the latest recorded Bluetooth device is the unique identifier of the first Bluetooth device.
In this application, the unique identifier of the slave device during the broadcast of the bluetooth connection request may also be obtained in another manner, for example, when the bluetooth connection between the master device and the slave device is disconnected, if the bluetooth type of the slave device is classic bluetooth or dual-mode bluetooth, and the device type is the first type, the unique identifier of the slave device is stored; the master device carries the unique identifier when broadcasting the bluetooth connection request.
In a second aspect, an electronic device is provided, comprising a processor for executing a computer program stored in a memory, and implementing the steps performed by the first electronic device in the method of any one of the first aspect of the present application.
In a third aspect, a chip system is provided, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the steps performed by the first electronic device in the method of any one of the first aspect of the present application.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by one or more processors, performs the steps performed by the first electronic device in the method of any one of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product for causing a device to perform the steps of the method of any one of the first to fifth aspects of the present application when the computer program product is run on the device.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
Fig. 1 is a schematic hardware structure diagram of an electronic device (host device) according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an application scenario of a bluetooth connection process between a mobile phone and a sports watch according to an embodiment of the present application;
fig. 3 is a schematic interface diagram of a mobile phone displaying and not displaying motion data of a sports watch according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a bluetooth backhaul method according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating comparison between the time taken for the user to take the mobile phone back and walk and the time taken for the user to pick up the mobile phone to view the mobile phone according to the embodiment of the present application;
fig. 6 is a schematic diagram illustrating a flow of actions performed by the mobile phone before the bluetooth connection method provided in fig. 4;
fig. 7 is a flowchart illustrating a bluetooth connection method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating another bluetooth connection method according to an embodiment of the present application;
fig. 9 is a timing diagram corresponding to the bluetooth connection method shown in fig. 7.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that in the embodiments of the present application, "one or more" means one, two, or more than two; "and/or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," "fourth," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The bluetooth connection method provided by the embodiment of the application can be applied to bluetooth connection processes of electronic devices (as a master device) such as large-screen devices, tablet computers, mobile phones, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal Digital Assistants (PDAs) and other bluetooth devices (as slave devices). Other bluetooth devices may include bluetooth devices that support classic bluetooth connections, and the specific types of master and slave devices are not limited by the embodiments of the present application.
Fig. 1 shows a schematic structural diagram of an electronic device (host device). The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180K, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, and an application program (such as a sound playing function, an image playing function, etc.) required by at least one function.
In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio signals into analog audio signals for output and also to convert analog audio inputs into digital audio signals. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it is possible to receive voice by placing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking near the microphone 170C through the mouth. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to implement noise reduction functions in addition to listening to voice information. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration prompts as well as for touch vibration feedback.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1.
The embodiment of the present application does not particularly limit the specific structure of the execution main body of the bluetooth connection method, as long as the processing can be performed by the bluetooth connection method provided according to the embodiment of the present application by running the code recorded with the bluetooth connection method of the embodiment of the present application. For example, an execution main body of the bluetooth connection method provided by the embodiment of the present application may be a functional module capable of calling a program and executing the program in the electronic device, or a processing device, such as a chip, applied in the electronic device.
At present, the wireless interconnection function between electronic devices is more and more powerful, and the wireless connection between the electronic devices can be realized through Bluetooth, wi-Fi and the like.
Referring to fig. 2, an application scenario of interconnection between electronic devices according to an embodiment of the present application is provided.
Referring to fig. 2 (a), the user's mobile phone and the sports watch may be connected via bluetooth. In the process of a user wearing the sports watch to do sports, the sports watch collects sports data of the user, the sports watch can send the sports data of the user to the mobile phone in real time through Bluetooth connection, and the mobile phone can display the sports data of the user in real time.
Referring to fig. 2 (b), a user may leave a mobile phone at home while wearing a sports watch for outdoor sports. If the distance between the outdoor running place of the user and the home of the user exceeds the propagation distance of the Bluetooth, the Bluetooth connection between the sports watch of the user and the mobile phone of the user is disconnected, and the sports data collected by the sports watch of the user in real time cannot be transmitted to the mobile phone of the user in real time.
Referring to fig. 2 (c), when the user finishes the exercise and wears the sports watch to return to home, the sports watch of the user and the mobile phone of the user reestablish (recover) the bluetooth connection, and the sports watch of the user can transmit the exercise data in the exercise process to the mobile phone, so that the exercise data of the user can be displayed through the mobile phone.
However, in practical applications, after the user wears the sports watch and returns to home, the user picks up the mobile phone to view the sports data, and the mobile phone cannot display the sports data just taken out for sports.
Fig. 3 is an interface schematic diagram of a card of an exercise health application on a mobile phone displaying exercise data and an interface schematic diagram of a card of an exercise health application on a mobile phone not displaying the exercise data in time, which are provided in the embodiment of the present application.
In the embodiment of the application, a card of an exercise health application on a system desktop is used as an example for displaying exercise data, in practical application, an interface (an interface after the exercise health application is started) of the exercise health application or a negative one-screen interface and the like can be used, and the embodiment of the application does not limit the way in which a user views the exercise data.
Referring to fig. 3 (a), theoretically, when the user wears the sports watch and returns to home after sports, the sports watch of the user and the mobile phone of the user reestablish (recover) the bluetooth connection, the sports watch of the user transmits the sports data in the sports process to the mobile phone, and the mobile phone displays the sports data of the user through the sports health card.
Referring to fig. 3 (b), when the user finishes the exercise and returns to home after wearing the sports watch, the user picks up the mobile phone to view the exercise data, and the mobile phone cannot display the card for exercise health application and cannot display the exercise data during the exercise just going out. Of course, in practical applications, the mobile phone may also display the card for exercise health application, however, the mobile phone cannot display exercise data. The embodiment of the application does not limit the display time of the card applied to the sports health.
The reason why the case shown in (b) in fig. 3 occurs may be: the user wears the sports watch to finish sports and returns to home, when the user picks up the mobile phone to check sports data, the Bluetooth connection between the sports watch and the mobile phone is not recovered, and therefore the sports data in the sports watch is not synchronized into the mobile phone.
In order to solve the problem occurring in (b) of fig. 3, the following will analyze the reason why the bluetooth connection between the sports watch and the cellular phone cannot be restored in time.
The bluetooth includes: classic Bluetooth (e.g., BR, EDR, and AMP modes) and Bluetooth low energy (Bluetooth low energy).
Some electronic devices only support classic bluetooth, some electronic devices only support bluetooth low energy, and some electronic devices can support both classic bluetooth and bluetooth low energy, i.e. dual-mode bluetooth.
In general, bluetooth low energy has lower power consumption and lower battery requirements than classic bluetooth, so that the endurance of an electronic device using bluetooth low energy can be extended. Based on the above differences, classic bluetooth is more useful in audio scenarios, such as bluetooth phone answering, bluetooth headset, and bluetooth speaker scenarios. Bluetooth low energy is more often in battery powered occasions such as wearable equipment, thing networking device, body-building equipment, keyboard mouse. Of course, the classic bluetooth and bluetooth low energy application scenarios listed above are for example only.
Taking the scenario shown in fig. 2 as an example, the sports watch generally provides functions of talking and playing audio, so the sports watch generally supports classic bluetooth, and a bluetooth connection is established between the mobile phone and the sports watch through classic bluetooth. When the distance between the mobile phone and the sports watch is long and the classic Bluetooth connection between the mobile phone and the sports watch is disconnected, the sports watch serving as the slave device periodically sends back a connection request broadcast, and the mobile phone serving as the master device recovers the classic Bluetooth connection between the mobile phone and the sports watch after receiving the connection request broadcast. As described above, the classic bluetooth is relatively high in power consumption and relatively high in power consumption, so when the sports watch is applied to an electronic device with limited electric quantity, such as a battery, the transmission frequency of bluetooth broadcast is usually reduced (the transmission cycle is prolonged) to reduce the power consumption, which may result in that the classic bluetooth connection may not be immediately restored under the condition that the distance between the mobile phone and the sports watch satisfies the distance of bluetooth connection, and the natural sports watch may not synchronize the sports data to the mobile phone in time. From the perspective of a user, the card applied to sports health on the mobile phone cannot refresh and display sports data just outdoors in time.
Certainly, the above application scenarios only take the mobile phone and the sports watch as examples, and in practical applications, when the classic bluetooth connection is restored between two electronic devices connected by the classic bluetooth, both the two electronic devices can be connected by the bluetooth connection mode subsequently provided by the embodiment of the present application. In the following, the bluetooth connection method provided by the embodiment of the present application will be described with a mobile phone as a master device for bluetooth connection and a sports watch as a slave device for bluetooth connection. The master device may be denoted as a first electronic device, and the slave device that has established a bluetooth connection with the master device may be denoted as a bluetooth device, and of course, when there are a plurality of slave devices, the first bluetooth device and the second bluetooth device may be further used to distinguish different bluetooth devices, for example, the sports watch described above may be used as an example of the first bluetooth device.
In the embodiment of the application, in order to improve user experience, a user can check the motion data on the motion watch through the mobile phone in time, before the user checks the motion data through the mobile phone, the Bluetooth connection between the mobile phone and the motion watch needs to be restored in time, and the motion watch can synchronize the motion data to the mobile phone in time based on the restored Bluetooth connection.
Generally, the procedure of bluetooth backhaul is: the slave device (for example, the sports watch in the above scenario) periodically sends back the connection request broadcast, and after receiving the connection request broadcast sent by the slave device, the master device (the mobile phone in the above scenario) starts a connection back operation, so that the bluetooth connection is restored between the master device and the slave device.
Since the slave device increases the period of sending the connection request broadcast back to reduce power consumption, the bluetooth connection method provided in this embodiment of the present application no longer depends on the connection request broadcast of the slave device, but is implemented by a flowchart shown in the bluetooth connection manner shown in fig. 4. The bluetooth backhaul method shown in fig. 4 includes the following steps:
step S101, the mobile phone predicts that the user may check the motion data.
Step S102, after the situation that the user probably checks the motion data is judged, the mobile phone is used as the main equipment to actively initiate a connection back request.
And step S103, after the slave device receives the connection back request, the Bluetooth connection with the master device is recovered.
After the bluetooth connection is restored, the slave device synchronizes motion data to the master device based on the restored bluetooth connection. By the method, the Bluetooth connection between the mobile phone and the sports watch can be timely recovered under the condition that the user is predicted to possibly check the sports data, so that the sports watch can timely synchronize the sports data to the mobile phone, and the user can see the synchronized sports data when using the mobile phone.
As an implementation manner of step S101, when using the mobile phone, the user will take up the mobile phone first, then unlock the mobile phone, and finally use the mobile phone. When a user uses the mobile phone, the mobile phone usually displays the system desktop first, and the card applied to the sports health is displayed on the system desktop; therefore, it can be predicted that the user may view the exercise data through the monitored event (which may be denoted as the first event) that the user may use the mobile phone.
The events which are provided by the embodiment of the application and are possibly used by the user can comprise various events.
As an example, events in which a user may use a cell phone may include: the action that the mobile phone is picked up or turned over is recognized, or the operation that the mobile phone is unlocked is recognized.
Taking the action of identifying the mobile phone to be picked up or turned over as an example, an acceleration sensor and a gyroscope can be arranged in the mobile phone, and the acceleration sensor is used for determining the upward acceleration of the mobile phone so as to determine the action of picking up the mobile phone; and determining that the mobile phone has the action of turning over through the angular speed detected by the gyroscope.
Of course, in practical applications, a lifting recognition model may be further provided, the lifting recognition model does not depend only on the acceleration collected by the acceleration sensor, the input parameters of the lifting recognition model may further include the angular velocity collected by the gyroscope, and the lifting recognition model is used to recognize the action of lifting (lifting) the mobile phone.
Similarly, a roll-over recognition model may be provided, which not only depends on the angular velocity collected by the gyroscope, but also includes the acceleration collected by the acceleration sensor.
Certainly, in order to make the recognition more accurate, other input parameters may be set in the lifting recognition model and the turning recognition model, and the embodiment of the present application does not limit the specific implementation manner of recognizing the action of lifting or turning the mobile phone.
For example, the operation of identifying that the mobile phone is unlocked may be set in different identification modes based on different unlocking modes.
For example, when there is fingerprint unlocking for the mobile phone, the operation of identifying that the mobile phone is unlocked may be set as: the fingerprint unlocking area detects a pressing operation.
When the mobile phone is unlocked by the password, the operation of identifying that the mobile phone is unlocked can be set as follows: and displaying a password unlocking interface by the mobile phone.
When the mobile phone has physical key unlocking, the operation of identifying that the mobile phone is unlocked can be set as follows: and monitoring the pressing operation of the physical key for unlocking.
Of course, when the mobile phone may have multiple unlocking modes, detecting any operation that the mobile phone is unlocked may determine that the operation that the mobile phone is unlocked is recognized.
As an implementation manner of steps S102 and S103, when the master device actively initiates the connection back request, the connection back request may also be sent in a broadcast manner. In order to avoid establishing a bluetooth connection with other bluetooth devices (e.g., bluetooth keyboard, bluetooth mouse, etc.) within the broadcast coverage area that do not need to be connected, the request for a loopback needs to carry a unique identification of the slave device that needs to recover the bluetooth connection. After the master device sends the reconnection request broadcast, a plurality of slave devices (such as a sports watch, a Bluetooth keyboard and a Bluetooth mouse) in the broadcast coverage range can receive the reconnection request broadcast; a plurality of slave devices (such as a sports watch, a bluetooth keyboard and a bluetooth mouse) which receive the loopback request broadcast need to determine whether the unique identifier carried in the broadcast is consistent with the unique identifier of the device; and under the condition that whether the unique identification carried in the broadcast is consistent with the unique identification of the equipment is determined, the electronic equipment which is whether the unique identification carried in the broadcast is consistent with the unique identification of the equipment is used as the slave equipment to recover the Bluetooth connection with the master equipment. The unique identifier is used to distinguish different bluetooth devices, so the unique identifier may be the mac address of the bluetooth device.
In order to determine that the user can view the motion data synchronized with the sports watch when using the mobile phone by using the bluetooth connection method provided by the embodiment of the present application, the embodiment of the present application describes a time relationship between a process of the user taking the mobile phone to view the motion data and a process of the mobile phone returning by taking the mobile phone as an event that the user may view the motion data by detecting that the mobile phone is taken up or turned over.
Referring to fig. 5, a schematic diagram of a time relationship between a process of a user picking up a mobile phone to view motion data and a process of mobile phone connection back provided in an embodiment of the present application, where the process described in fig. 5 corresponds to a bluetooth connection back process represented by a scenario shown in (c) in fig. 2.
Wherein, from when the user begins to pick up the mobile phone, the connection back process between the mobile phone and the sports watch mainly comprises the following processes:
(1) Event recognition: the handset recognizes an event that the handset is lifted or flipped. Takes about 700-1000ms.
(2) Bluetooth loop connection: and the mobile phone establishes Bluetooth connection with the sports watch based on the stored MAC address of the sports watch. It took about 1s.
(3) Data synchronization: the sports watch synchronizes the sports data to the handset. Takes less than about 500ms.
(4) Card refreshing: the card of the exercise health application on the mobile phone is refreshed based on the synchronized exercise data. Takes less than about 500ms.
In summary, it takes about 2.7s to 3s from the time the user starts to pick up the mobile phone to the sports health card on the mobile phone to successfully refresh the sports data.
There are mainly the following processes from the user starting to pick up the phone to the user starting to view the card of the sports health application on the phone:
(1) The user starts picking up the mobile phone until the user starts unlocking the mobile phone. For about 1s.
(2) The user starts to unlock the mobile phone and the mobile phone is successfully unlocked. If the face unlocking is adopted, the time consumption is usually less than 1s; if the fingerprint is adopted to press for unlocking, the time consumption is usually less than 800ms; if the unlocking is input by a password or a gesture, the time consumption is usually less than 2s. In fig. 5, the process takes about 1s when the human face is unlocked, for example.
(3) The unlocking of the mobile phone is successfully completed by displaying the desktop of the mobile phone, and the time consumption is usually less than 700ms.
In summary, it takes about 2.7 seconds from the user picking up the cell phone to starting to view the card of the sports fitness application on the cell phone. Considering different unlocking modes, it takes about 2.5s to 3.7s.
It will be appreciated that while in some extreme cases the user 'S viewing time is slightly less than the walking time, 1S is the limit at which the user' S operational mind remains uninterrupted, as shown by the user experience human factor study results. Therefore, when the user viewing time is slightly less than the step time within 1s, the interruption of the user operation on the cardiac flow is not caused.
For a clearer understanding of the bluetooth connection method provided in the embodiment of the present application, reference may be made to fig. 6, where fig. 6 is another schematic flowchart of the bluetooth connection method provided in the embodiment of the present application, and the schematic flowchart may correspond to the scenarios shown in fig. 2 (a) and fig. 2 (b).
In the bluetooth connection method provided in the embodiment of the present application, before the mobile phone really sends back the connection request broadcast, the following steps are further present:
s201, the mobile phone and the sports watch establish Bluetooth connection, and the mobile phone registers Bluetooth connection state change monitoring service.
After the mobile phone and the sports watch establish Bluetooth connection, a Bluetooth connection state change monitoring service is registered, and the Bluetooth connection state change monitoring service is used for monitoring state change of the Bluetooth connection between the mobile phone and the sports watch.
S202, the mobile phone monitors that the mobile phone and the Bluetooth watch are disconnected in Bluetooth connection based on the registered Bluetooth connection state change monitoring service, and the mobile phone registers the action monitoring service.
The action monitoring service is used for monitoring whether the mobile phone is lifted or overturned.
S203, the mobile phone identifies whether the mobile phone is lifted or turned over based on the registered motion monitoring service.
After the identification result of step S203 is that the mobile phone is lifted or turned over, which indicates that the mobile phone predicts that the user may view the motion data in step S101, the steps S102 and S103 will be continued.
For a clearer understanding of the above embodiments, a flowchart of the bluetooth connection method is illustrated with reference to fig. 7.
S301, the Bluetooth connection is established between the mobile phone and the Bluetooth device for the first time, and the Bluetooth type and the device type of the Bluetooth device which establishes the Bluetooth connection with the mobile phone are obtained.
In the embodiment of the application, when the mobile phone is connected with the Bluetooth device for the first time, the mobile phone needs to be paired, and after the pairing is successful, the mobile phone and the Bluetooth device successfully establish the Bluetooth connection. When the mobile phone establishes the Bluetooth connection with the Bluetooth equipment again, the pairing process is not needed any more. Therefore, in the embodiment of the present application, the mobile phone may determine whether to establish a bluetooth connection with the bluetooth device for the first time through whether a pairing process exists.
Of course, in practical application, it may also be determined whether to establish bluetooth connection with the bluetooth device for the first time in another manner.
S302, whether the Bluetooth type is classic Bluetooth or dual-mode Bluetooth and whether the device type is a preset device type is judged.
And S303, if the Bluetooth type is classic Bluetooth or dual-mode Bluetooth and the equipment type is a preset equipment type, storing the mac address of the Bluetooth equipment in the mobile phone.
In this embodiment of the present application, one or more device types are preset, for example, the preset device type (which may be denoted as a first type) may include: a wearable device. When the device type is any one of the preset device types and the bluetooth type is the classic bluetooth or the dual-mode bluetooth, it can be determined that the bluetooth device currently establishing the bluetooth connection with the mobile phone is suitable for the bluetooth backhaul method provided by the embodiment of the present application. Therefore, it is necessary to store the mac address of the bluetooth device to establish a bluetooth connection based on the mac address at a later time.
In the embodiment of the application, when the mac address of the bluetooth device is stored, the device type and the bluetooth type of the bluetooth device may be stored in an associated manner.
S304, the mobile phone monitors the state change of the Bluetooth connection.
In the embodiment of the application, no matter the current connection between the mobile phone and the bluetooth device is the first connection or the non-first connection, the state change of the bluetooth connection needs to be monitored after the bluetooth connection is established. Therefore, before step S304, it is also possible to include:
step S401, the Bluetooth connection is not established for the first time by the mobile phone and the Bluetooth device.
After step S304, the following steps are also included:
s305, the mobile phone monitors that the Bluetooth connection with the Bluetooth equipment is disconnected.
S306, judging whether the Bluetooth type of the disconnected Bluetooth equipment is classic Bluetooth or dual-mode Bluetooth or not, and whether the equipment type is the preset equipment type or not.
In the embodiment of the application, after the bluetooth connection (first time and non-first time) is established between the mobile phone and the bluetooth device, the change of the bluetooth connection state is monitored. Therefore, after the mobile phone monitors that the bluetooth connection of the bluetooth device is disconnected, it needs to determine whether the bluetooth type of the disconnected bluetooth device is classic bluetooth or dual-mode bluetooth, and whether the device type is a preset device type, so as to determine whether to register an action monitoring service.
S307, if the Bluetooth type of the currently disconnected Bluetooth device is classic Bluetooth or dual-mode Bluetooth and the device type is a preset type, registering an action monitoring service, wherein the action monitoring service is used for determining whether the mobile phone has a lifting or overturning action based on the angular velocity monitored by the gyroscope and the acceleration monitored by the acceleration sensor.
In this embodiment of the present application, when the bluetooth type of the currently disconnected bluetooth device is a classic bluetooth or a dual-mode bluetooth, and the device type is a preset device type, the bluetooth device is only applicable to the bluetooth backhaul method provided in this embodiment of the present application. Therefore, the action monitoring service is registered to determine whether the mobile phone is lifted or turned over by the action monitoring service.
S308, the mobile phone judges whether the mobile phone is in lifting or turning action through the action monitoring service.
S309, when the mobile phone is determined to be lifted or turned over, searching the mac address of the Bluetooth device with the preset device type, the Bluetooth type being classical Bluetooth or dual-mode Bluetooth and the connection state being disconnected from the stored mac address list.
In this embodiment of the present application, the bluetooth device corresponding to the mac address that is searched for is a bluetooth device that is suitable for the bluetooth backhaul method provided in this embodiment of the present application, and therefore, the device type of the bluetooth device corresponding to the mac address that is searched for is a preset device type, and the bluetooth type is classic bluetooth or dual-mode bluetooth.
In addition, the user wears the sports watch to send the bluetooth broadcast periodically, but the period is long, so when the user wears the sports watch to return to the space where the mobile phone is located, the sports watch may be right at the moment of sending the bluetooth broadcast, or the time before the mobile phone is determined to be lifted or turned over, the sports watch just sends the bluetooth broadcast, and the mobile phone establishes the bluetooth connection with the sports watch based on the bluetooth broadcast. In this case, the handset no longer needs to initiate a reconnect request broadcast, so in the event that the handset is determined to be in a lift or flip action, the mac address currently disconnected from bluetooth is looked up from the list.
In the embodiment of the present application, one or more mac addresses that meet the requirement and are found by the mobile phone may be found.
As an example of finding a mac address that meets the requirement, one bluetooth device that meets the condition (the device type is a preset device type, and the bluetooth type is classic bluetooth or dual-mode bluetooth) is stored in the mobile phone, and accordingly, one mac address is stored. After the mobile phone is disconnected from the Bluetooth device corresponding to the mac address, if the mobile phone is monitored to be lifted or turned, the mac address of the Bluetooth device is obtained from the mac address list.
As another example of finding a mac address that meets the requirement, the number of bluetooth devices that satisfy the condition (the device type is the preset device type, and the bluetooth type is classic bluetooth or dual-mode bluetooth) stored in the mobile phone is two, and correspondingly, two mac addresses are stored. After the mobile phone is disconnected from the Bluetooth device corresponding to one mac address, the Bluetooth device corresponding to another mac address still has Bluetooth connection; if the mobile phone is monitored to have the lifting or turning action, the mac address of the Bluetooth device disconnected from the Bluetooth connection is obtained from the mac address list, and the mac address of another Bluetooth device still connected with the mobile phone by the Bluetooth cannot be found.
As an example of finding two mac addresses that meet the requirement, two bluetooth devices that satisfy the condition (the device type is a preset device type, and the bluetooth type is classic bluetooth or dual-mode bluetooth) are stored in the mobile phone, and correspondingly, two mac addresses are stored. After the mobile phone and the two Bluetooth devices are disconnected, if the situation that the mobile phone is lifted or overturned is monitored, mac addresses of the two Bluetooth devices disconnected from the Bluetooth are obtained from the mac address list.
Other examples of finding two satisfactory mac addresses and examples of finding more than two satisfactory mac addresses are not given.
And S310, the mobile phone broadcasts a Bluetooth connection request based on the searched mac address.
Under the condition that the mobile phone finds a mac address meeting the requirement, a Bluetooth connection request is broadcasted based on the found mac address, and the Bluetooth connection request carries the mac address.
And under the condition that the mobile phone finds a plurality of mac addresses meeting the requirements, broadcasting the Bluetooth connection request based on the plurality of found mac addresses. For example, a bluetooth connection request carrying the mac address is generated based on each mac address broadcast, and then a plurality of bluetooth connection requests corresponding to a plurality of mac addresses are broadcast.
After step S310, the following steps are also included (the illustration is not shown):
s311, the bluetooth device receiving the bluetooth connection request resumes the bluetooth connection with the mobile phone sending the connection request when the mac address is consistent with the mac address of the bluetooth device.
In this embodiment of the present application, if a bluetooth connection request broadcast sent by a mobile phone is a broadcast corresponding to multiple bluetooth connection requests corresponding to multiple mac addresses, and possibly a certain bluetooth device corresponding to a certain mac address or certain mac addresses are within a coverage range of the broadcast, the broadcast can be received, and bluetooth connection can be resumed. If the bluetooth device corresponding to a mac address or mac addresses is not within the coverage of the broadcast, the broadcast cannot be received, and the bluetooth connection will not be restored.
And S312, after the Bluetooth device is confirmed to recover the Bluetooth connection with the mobile phone, the Bluetooth device sends the motion data to the mobile phone.
Taking the sports watch as an example, the sports watch synchronizes the motion data to the mobile phone, and if the bluetooth device is another device, the sports watch can send other information related to the bluetooth device to the mobile phone.
The embodiment of the application focuses on how to quickly recover the Bluetooth connection between the mobile phone and the Bluetooth device, and the interaction between the mobile phone and the Bluetooth device after the Bluetooth connection is recovered is not limited.
And S313, after the mobile phone receives the exercise data, updating the content in the exercise health application card displayed on the desktop.
And S314, when the mobile phone is unlocked and the mobile phone displays the desktop, displaying the contents in the card of the exercise health application on the desktop as the exercise data synchronized with the exercise watch.
In the embodiment shown in fig. 7, after the bluetooth connection is established between the mobile phone and the bluetooth device, if the mobile phone determines that the bluetooth device currently establishing the bluetooth connection with the mobile phone is not the first bluetooth connection, the steps S302 and S303 of "acquiring the bluetooth type and device type of the bluetooth device establishing the bluetooth connection with the mobile phone" in step S301 are no longer required.
However, in practical applications, the bluetooth connection method provided in this embodiment of the present application may not be preset in a mobile phone when the mobile phone is shipped from a factory, or the mobile phone may have a function corresponding to the bluetooth connection method provided in this embodiment of the present application through a system upgrade manner or an application installation manner that provides the function after the user uses the mobile phone for a period of time. Therefore, the embodiment of the present application further provides another way to generate the mac address list (the mac address list may be a list corresponding to the mac address, the bluetooth type, and the device type of the bluetooth device stored in step S303 in fig. 7).
Referring to fig. 8, a schematic flowchart of another process for storing the mac address of the bluetooth device according to the embodiment of the present application is provided.
S501, the mobile phone and the Bluetooth device establish Bluetooth connection.
S502, after the Bluetooth connection is established between the mobile phone and the Bluetooth device, the Bluetooth type and the device type of the Bluetooth device which establishes the Bluetooth connection with the mobile phone are obtained.
In the embodiment of the application, whether the Bluetooth connection between the mobile phone and the Bluetooth device is the first connection or the non-first connection does not need to be judged, and the Bluetooth type and the device type of the Bluetooth device establishing the Bluetooth connection with the mobile phone can be acquired on the basis that the first connection and the non-first connection do not need to be judged.
S503, the mobile phone judges whether the Bluetooth type of the Bluetooth equipment is classic Bluetooth or dual-mode Bluetooth and whether the equipment type is preset equipment type.
S504, if the Bluetooth type is classic Bluetooth or dual-mode Bluetooth and the device type is a preset device type, whether the mac address of the Bluetooth device is stored in the mobile phone or not is judged.
S505, if the mac address of the bluetooth device is not stored in the mobile phone, the mac address of the bluetooth device may be stored in the mobile phone. And simultaneously, the device type and the Bluetooth type of the Bluetooth device are stored in an associated manner.
If the mac address of the bluetooth device is already stored in the mobile phone, the mac address does not need to be stored again.
After step S505, step S304 to step S314 may be continuously performed, which is not described in detail in this embodiment of the application.
In the embodiment shown in FIG. 7, the steps performed prior to determining whether to register for the action listening service include:
after monitoring that the Bluetooth connection between the mobile phone and the Bluetooth equipment is disconnected, the mobile phone judges whether the Bluetooth type of the disconnected Bluetooth equipment is classic Bluetooth or dual-mode Bluetooth or not and whether the equipment type is a preset equipment type or not; and if the Bluetooth type of the currently disconnected Bluetooth equipment is classic Bluetooth or dual-mode Bluetooth and the equipment type is the preset equipment type, registering the action monitoring service.
It is understood that the conditions of the registration action listening service are: the mobile phone and the Bluetooth device of which the Bluetooth type is classic Bluetooth or dual-mode Bluetooth and the device type is a preset device type disconnect the Bluetooth connection.
Therefore, in practical application, after the bluetooth connection is established between the mobile phone and the bluetooth device, it may be determined whether the bluetooth type of the bluetooth device currently establishing the bluetooth connection is classic bluetooth or dual-mode bluetooth, and whether the device type is a preset device type; if yes, monitoring the state change of the Bluetooth connection; after the current Bluetooth connection is monitored to be disconnected, the action monitoring service is started.
Based on the above understanding, after step S504 or S505, step S506 shown in fig. 8 and the following steps may also be performed:
s506, the mobile phone monitors the state change of the Bluetooth connection.
S507, the mobile phone monitors that the Bluetooth connection between the mobile phone and the Bluetooth device is disconnected.
And S508, after the mobile phone monitors that the Bluetooth connection between the mobile phone and the Bluetooth device is disconnected, registering the action monitoring service.
In the embodiment of the present application, since step S503 has been executed in the stage of storing the mac address, and it has been determined that the bluetooth type of the currently connected bluetooth device is the classic bluetooth or the dual-mode bluetooth, and the device type is the preset device type, in step S507, it may be no longer necessary to determine whether the bluetooth type of the bluetooth device currently disconnected from the bluetooth connection is the classic bluetooth or the dual-mode bluetooth, and whether the device type is the preset device type according to the manner of the embodiment shown in fig. 7; but directly performs step S508 to register the action listening service.
Of course, after step S508, steps S308 to S314 may be performed. The embodiment of the present application is not described in detail.
As described above, before the mobile phone sends back the connection request broadcast, the mobile phone determines the mac address carried in the connection request broadcast in such a manner that the mac address of the bluetooth device whose device type is the preset device type, bluetooth type is classic bluetooth or dual-mode bluetooth, and connection state is disconnected is searched from the stored mac address list. In practical applications, a broadcast may be sent to a plurality of backhaul requests respectively corresponding to mac addresses.
For example, after the bluetooth connection is established between the user's sports watch a and the user's mobile phone, the mac address of the sports watch a and other associated information are stored in the user's mobile phone. The user A gets out of the need for updating the sports watch, the sports watch A is eliminated (possibly left at home, or sent to the user or discarded), a new sports watch B is purchased and used, after the Bluetooth connection is established between the sports watch B of the user and the mobile phone of the user, the mac address of the sports watch B and other related information are stored in the mobile phone of the user.
When the user wears the sports watch B to go out and go back to home again to pick up the mobile phone, the mobile phone can trigger the broadcast of the Bluetooth connection request carrying the mac address of the sports watch A and the broadcast of the Bluetooth connection request carrying the mac address of the sports watch B. In practice, however, the user no longer uses the sports watch. The handset need not send a broadcast of the bluetooth connection request carrying the mac address of sports watch a.
In view of this, the present embodiment also provides a method for acquiring a mac address.
After monitoring that the Bluetooth connection between the mobile phone and the Bluetooth equipment is disconnected, the mobile phone records the mac address of the currently disconnected Bluetooth equipment in the second storage space; and when the mobile phone is determined to be lifted or turned over, acquiring the mac address recorded in the second storage space at the latest, and broadcasting the Bluetooth connection request by the mobile phone based on the mac address recorded at the latest.
For the sake of distinction, a previously stored mac address list may be stored in the first memory space and the recorded mac addresses of disconnected bluetooth devices may be stored in the second memory space.
In the method for performing bluetooth connection according to the embodiment shown in fig. 7 or fig. 8, the process goes to step S309, and a mac address list is obtained from the first storage space and a mac address meeting the requirement is searched.
In the bluetooth connection method provided according to the current embodiment, when a mac address recorded latest needs to be searched (the latest recorded device type is a preset device type, the bluetooth type is classic bluetooth or dual-mode bluetooth, and the connection state is a mac address of a disconnected bluetooth device), the latest stored mac address is obtained from the second storage space.
Of course, in practical applications, the second storage space may also limit the number of stored mac addresses. For example, only one mac address is stored, so that the loopback request carries the latest stored mac address.
The second storage space may also store a plurality of mac addresses, each mac address may generate a backhaul request (also referred to as a bluetooth connection request), and accordingly, may send a broadcast corresponding to the plurality of backhaul requests.
For a clearer understanding of the steps respectively performed by the mobile phone and the bluetooth device in the above embodiments, reference may be made to the timing diagram shown in fig. 9. The timing diagram may correspond to the flow diagram of the bluetooth connection method shown in fig. 7.
The module participating in the Bluetooth connection method in the mobile phone comprises the following modules: desktop card applications, bluetooth ConnectService, motionservice, and SensorsModule.
The desktop card application is used for displaying the motion data synchronized with the Bluetooth equipment.
The bluetooth connecticservice is responsible for bluetooth connections between the handset and other bluetooth devices.
The sensorsform module is used for monitoring the motion of the mobile phone. Such as lifting, flipping, etc.
The Motionservice is used for triggering the SensorsModule to start monitoring the lifting or turning action; and also used for reporting the lifting or turning action reported by the SensorsModule.
The module participating in the Bluetooth connection method in the Bluetooth equipment comprises the following steps: bluetooth connected service and upper layer applications.
The Bluetooth connection service is responsible for Bluetooth connection between the Bluetooth device and the mobile phone.
The upper layer application is used to synchronize the motion data to the cell phone side through bluetooth connecticservice.
How the mobile phone and the bluetooth device implement the bluetooth connection method provided by the embodiment of the present application through the above modules will be described below.
S601, bluetooth connection service in the mobile phone and Bluetooth connection service in the Bluetooth device are firstly carried out.
S602, the bluetooth connectivity service in the mobile phone obtains the bluetooth type and the device type of the bluetooth device from the bluetooth connectivity service in the bluetooth device.
S603, the Bluetooth ConnectService in the mobile phone determines that the Bluetooth type of the Bluetooth equipment is classic Bluetooth or dual-mode Bluetooth, and the equipment type is the preset equipment type.
S604, the Bluetooth ConnectService in the mobile phone stores the mac address, the Bluetooth type and the device type of the Bluetooth device.
S605, the bluetooth connectivity service in the mobile phone registers the bluetooth connection state change monitoring service.
In practical applications, if the step S601 is a non-initial bluetooth connection between the mobile phone and the bluetooth device, the steps S602 to S604 are not executed, but the step S605 is executed.
S606, the Bluetooth ConnectService in the mobile phone monitors that the Bluetooth connection is disconnected.
S607, the bluetooth connectivity service in the mobile phone determines that the bluetooth type of the currently disconnected bluetooth device is a classic bluetooth or a dual-mode bluetooth, and the device type is a preset device type.
In practical application, after the bluetooth connectivity service in the bluetooth device monitors that the bluetooth connection is disconnected, an incremental periodic transmission connection request task is started. The incremental periodic transmission connection request task indicates that the bluetooth device will periodically transmit bluetooth connection requests, except that the period for transmitting bluetooth connection requests will gradually become longer.
S608, the bluetooth connecticservice in the mobile phone determines that the bluetooth type of the currently disconnected bluetooth device is the classic bluetooth or the dual-mode bluetooth, and when the device type is the preset type, the bluetooth connecticservice in the mobile phone registers an action monitoring service with the mobility service in the mobile phone.
S609, after the Motionservice in the mobile phone receives the information of the registration action monitoring service, the Motionservice sends the information of starting action identification and setting the event reporting mark as true to the SensorsModule in the mobile phone.
S610, a sensorModule in the mobile phone monitors the acceleration monitored by the acceleration sensor and the angular velocity monitored by the gyroscope.
S611, the SensorsModule in the mobile phone determines the current action of lifting or turning the mobile phone according to the monitored data, and the reported query event is marked as true.
S612, the SensorsModule in the mobile phone reports the action event to the Motionservice in the mobile phone.
S613, after receiving the reported action event, the mobilestarvice in the mobile phone sends a bluetooth connection trigger event to the bluetooth connecticservice in the mobile phone.
And S614, after the Bluetooth ConnectService in the mobile phone receives the Bluetooth loopback triggering event, searching the mac address of the Bluetooth device with the preset device type, the classical Bluetooth or the dual-mode Bluetooth type and the disconnected connection state from the mac address list.
S615, the bluetooth connectionservice in the mobile phone initiates a bluetooth connection request (or bluetooth connection request) broadcast based on the found mac address.
And S616, after the Bluetooth ConnectService in the Bluetooth equipment receives the Bluetooth return connection request broadcast, under the condition that the mac address carried in the Bluetooth return connection request is determined to be consistent with the mac address of the Bluetooth equipment, the Bluetooth connection with the mobile phone is recovered.
S617, the bluetooth connecticservice in the bluetooth device sends a data synchronization request to the upper layer application.
S618, the upper layer application in the bluetooth device transmits the motion data to the bluetooth connectiservice in the bluetooth device.
S619, the bluetooth connecticservice in the bluetooth device transmits the motion data to the bluetooth connecticservice in the mobile phone.
S620, the Bluetooth ConnectService in the mobile phone sends the motion data to the desktop card application of the mobile phone.
And S621, refreshing the content by the desktop card application in the mobile phone.
After the mobile phone user picks up and the mobile phone is unlocked, the mobile phone displays a desktop, a card for exercise health application is displayed on the desktop, and exercise data synchronized with an exercise watch is displayed in the card.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments may be implemented.
Embodiments of the present application further provide a computer program product, which when run on an electronic device, enables the electronic device to implement the steps in the above method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above may be implemented by instructing related hardware to complete through a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the methods described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a first device, including a recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The embodiments of the present application further provide a chip system, where the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the steps of any of the method embodiments of the present application. The chip system may be a single chip or a chip module composed of a plurality of chips.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (12)

1. A bluetooth connection method, comprising:
the first electronic device monitors disconnection of a classic Bluetooth connection with the first Bluetooth device;
if the currently disconnected Bluetooth type of the first Bluetooth device is classic Bluetooth or dual-mode Bluetooth and the device type is a first type, monitoring a first event by the first electronic device, wherein the first type comprises wearable devices;
the first electronic equipment monitors the first event, wherein the first event is a preset event used for indicating that the first electronic equipment is to be used by a user;
responding to the first event, the first electronic device acquiring a unique identifier of a first Bluetooth device, wherein the first Bluetooth device is a Bluetooth device which establishes a classic Bluetooth connection with the first electronic device, does not currently have the classic Bluetooth connection with the first electronic device, has a Bluetooth type of classic Bluetooth or dual-mode Bluetooth, and has a device type of a first type, and the first type is a device type which is preset and used for restoring the Bluetooth connection with the first electronic device;
the first electronic device broadcasts a Bluetooth connection request, the Bluetooth connection request carries the unique identifier of the first Bluetooth device, and the Bluetooth connection request is used for indicating that the device identifier is the Bluetooth device with the unique identifier, and based on the Bluetooth connection request, the first electronic device recovers the classic Bluetooth connection with the first electronic device.
2. The method of claim 1, wherein prior to the first electronic device hearing a disconnection of a classic bluetooth connection with the first bluetooth device, the method further comprises:
under the condition that classic Bluetooth connection is established between the first electronic device and the first Bluetooth device, the first electronic device monitors state change of classic Bluetooth connection between the first electronic device and the first Bluetooth device.
3. The method of claim 2, wherein the method further comprises:
in response to monitoring that the classic Bluetooth is disconnected with the first Bluetooth device, the first electronic device judges whether the Bluetooth type of the first Bluetooth device which is currently disconnected is classic Bluetooth or dual-mode Bluetooth and whether the device type is a first type.
4. The method of claim 1, wherein an acceleration sensor and a gyroscope are disposed on the first electronic device, and wherein the first electronic device monitoring for a first event comprises:
the first electronic equipment acquires the acceleration acquired by the acceleration sensor and the angular velocity acquired by the gyroscope;
the first electronic device determines that there is a lifting or turning action of the first electronic device based on the acceleration and/or the angular velocity, and the first event comprises the lifting or turning action of the first electronic device.
5. The method of any of claims 1 to 4, further comprising:
when the first electronic device establishes Bluetooth connection with the first Bluetooth device for the first time, the first electronic device acquires the Bluetooth type and the device type of the first Bluetooth device from the first Bluetooth device;
if the bluetooth type of the first bluetooth device is classic bluetooth or dual-mode bluetooth, and the device type of the first bluetooth device is a first type, the first electronic device stores the unique identifier, the bluetooth type, and the device type of the first bluetooth device in a unique identifier list.
6. The method of claim 5, wherein said obtaining, by the first electronic device, a unique identification of a first Bluetooth device in response to the first event comprises:
in response to the first event, the first electronic device queries, from the unique identifier list, a unique identifier which is a bluetooth device with a bluetooth type of classic bluetooth or dual-mode bluetooth, a device type of the first type, and no classic bluetooth connection with the first electronic device currently.
7. The method of any of claims 1-4, wherein the first Bluetooth device is a motion data collection device, and wherein after the classic Bluetooth connection between the first electronic device and the first Bluetooth device is restored, the method further comprises:
the first electronic equipment receives the motion data sent by the first Bluetooth equipment through a classic Bluetooth connection with the first Bluetooth equipment;
the first electronic device updates display content of a first application of the first electronic device based on the received motion data, wherein the first application is used for displaying the received motion data.
8. The method of claim 7, wherein the method further comprises:
in response to a second event, the first electronic device displays a system desktop including a card of a first application for displaying the received motion data.
9. The method of claim 3, wherein if the currently disconnected Bluetooth type of the first Bluetooth device is classic Bluetooth or dual mode Bluetooth and the device type is a first type, the method further comprises:
recording the unique identification of the first Bluetooth device;
correspondingly, in response to the first event, the acquiring, by the first electronic device, the unique identifier of the first bluetooth device includes:
responding to the first event, the first electronic device obtains the unique identification of the Bluetooth device recorded at the latest, and the unique identification of the Bluetooth device recorded at the latest is the unique identification of the first Bluetooth device.
10. An electronic device, characterized in that the electronic device comprises a processor for executing a computer program stored in a memory, so that the electronic device implements the method according to any of claims 1 to 9.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, implements the method of any one of claims 1 to 9.
12. A chip system, characterized in that the chip system comprises a processor coupled with a memory, the processor executing a computer program stored in the memory to implement the method of any of claims 1 to 9.
CN202211159219.7A 2022-09-22 2022-09-22 Bluetooth connection method, electronic equipment and chip system Active CN115250545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211159219.7A CN115250545B (en) 2022-09-22 2022-09-22 Bluetooth connection method, electronic equipment and chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211159219.7A CN115250545B (en) 2022-09-22 2022-09-22 Bluetooth connection method, electronic equipment and chip system

Publications (2)

Publication Number Publication Date
CN115250545A CN115250545A (en) 2022-10-28
CN115250545B true CN115250545B (en) 2023-03-10

Family

ID=83699584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211159219.7A Active CN115250545B (en) 2022-09-22 2022-09-22 Bluetooth connection method, electronic equipment and chip system

Country Status (1)

Country Link
CN (1) CN115250545B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303907B (en) * 2015-05-28 2021-03-02 腾讯科技(深圳)有限公司 Bluetooth communication method and Bluetooth communication device
US10111272B1 (en) * 2017-08-01 2018-10-23 At&T Intellectual Property I, L.P. Temporary bluetooth pairing
KR102480875B1 (en) * 2017-12-04 2022-12-26 삼성전자주식회사 Method for reconnecting bluetooth communication and apparatus using the same
CN113382397B (en) * 2019-04-18 2023-12-08 华为技术有限公司 Bluetooth connection method, device and system
CN110602672B (en) * 2019-07-29 2021-10-08 深圳市万普拉斯科技有限公司 Bluetooth device reconnection method, device, terminal and computer readable storage medium
CN112469010B (en) * 2019-09-06 2022-04-05 华为技术有限公司 Bluetooth connection method and related device
CN115442783A (en) * 2020-01-21 2022-12-06 华为技术有限公司 Bluetooth connection method, system and electronic equipment
CN112333679B (en) * 2020-09-10 2024-03-12 深圳Tcl新技术有限公司 Bluetooth automatic connection method, system, equipment and computer readable storage medium
CN113543102A (en) * 2021-07-12 2021-10-22 三诺生物传感股份有限公司 Bluetooth connection method
CN113825126A (en) * 2021-09-30 2021-12-21 联想(北京)有限公司 Control method and device

Also Published As

Publication number Publication date
CN115250545A (en) 2022-10-28

Similar Documents

Publication Publication Date Title
US11653398B2 (en) Bluetooth connection method and device
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
JP2022529033A (en) Bluetooth connection method, device, and system
CN111491297B (en) Method and device for controlling intelligent household equipment to be connected with network
CN112911566B (en) Bluetooth communication method and device
CN112469010B (en) Bluetooth connection method and related device
CN111148271A (en) Method and terminal for controlling hearing aid
CN112913321A (en) Method, equipment and system for carrying out call by using Bluetooth headset
CN112469011A (en) Bluetooth pairing method and related device
CN109842872A (en) Working mode control method, Bluetooth headset, terminal and computer storage medium
CN114071655A (en) Network searching method and related device
CN112888045A (en) Cell measurement method, cell measurement device, terminal device, chip and storage medium
WO2022206825A1 (en) Method and system for adjusting volume, and electronic device
CN112789934B (en) Bluetooth service query method and electronic equipment
CN115250545B (en) Bluetooth connection method, electronic equipment and chip system
CN111246528A (en) Network switching method and electronic equipment
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN110324791B (en) Networking method and device, computer equipment and storage medium
CN109618062B (en) Voice interaction method, device, equipment and computer readable storage medium
CN114500725B (en) Target content transmission method, master device, slave device, and storage medium
CN114449492B (en) Data transmission method and terminal equipment
CN117714995A (en) Wireless connection method, electronic device, wireless router and storage medium
CN116074359A (en) Distribution network method and electronic equipment
CN115529639A (en) Network switching method and device, user equipment and readable storage medium
CN117917899A (en) Audio service processing method, electronic equipment and computer 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
GR01 Patent grant
GR01 Patent grant