CN111615090A - Interaction method and device between Bluetooth devices, storage medium and electronic device - Google Patents

Interaction method and device between Bluetooth devices, storage medium and electronic device Download PDF

Info

Publication number
CN111615090A
CN111615090A CN202010345217.1A CN202010345217A CN111615090A CN 111615090 A CN111615090 A CN 111615090A CN 202010345217 A CN202010345217 A CN 202010345217A CN 111615090 A CN111615090 A CN 111615090A
Authority
CN
China
Prior art keywords
bluetooth
bound
master device
message
bluetooth master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010345217.1A
Other languages
Chinese (zh)
Other versions
CN111615090B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010345217.1A priority Critical patent/CN111615090B/en
Publication of CN111615090A publication Critical patent/CN111615090A/en
Application granted granted Critical
Publication of CN111615090B publication Critical patent/CN111615090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • 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/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides an interaction method between Bluetooth devices, an interaction device between the Bluetooth devices, a computer readable storage medium and an electronic device, and relates to the technical field of Bluetooth communication. The interaction method between the Bluetooth devices comprises the following steps: the Bluetooth slave device receives a scanning request message sent by the Bluetooth master device, extracts identification information of the Bluetooth master device from the scanning request message, and sends a response message to the Bluetooth master device under the condition that the identification information of the Bluetooth master device is determined to be matched with the identification information of one bound device in a bound device set, the Bluetooth master device displays information of the Bluetooth slave device based on the response message, connection between the Bluetooth master device and the Bluetooth slave device is established, and the Bluetooth slave device responds to a login message sent by the Bluetooth master device and feeds back the information of the bound device to the Bluetooth master device so as to manage on the Bluetooth master device. The present disclosure may manage bound devices of a bluetooth slave device.

Description

Interaction method and device between Bluetooth devices, storage medium and electronic device
Technical Field
The present disclosure relates to the field of bluetooth communication technologies, and in particular, to an interaction method between bluetooth devices, an interaction apparatus between bluetooth devices, a computer-readable storage medium, and an electronic device.
Background
As a wireless network technology, the bluetooth communication technology has the advantages of short start time, fast connection establishment, low power consumption, and the like, and has been applied to various data transmission scenarios. Especially, with the popularization of wireless terminals such as wearable devices, bluetooth communication technology has been developed and applied more widely.
Currently, in the process of implementing connection between bluetooth devices, a bluetooth slave device broadcasts, and a bluetooth master device queries the bluetooth slave device based on the broadcast content and sends an access request to the bluetooth slave device to implement connection.
In the case that there are multiple bound bluetooth masters in a bluetooth slave, there is no scheme for better managing these bluetooth masters.
Disclosure of Invention
The present disclosure provides an interaction method between bluetooth devices, an interaction apparatus between bluetooth devices, a computer-readable storage medium, and an electronic device, thereby overcoming, at least to some extent, the problem of how to manage bound devices of bluetooth slave devices.
According to a first aspect of the present disclosure, there is provided an interaction method between bluetooth devices, applied to a bluetooth master device, including: sending a scanning request message; wherein, the scanning request message contains the identification information of the Bluetooth master device; under the condition that the Bluetooth slave equipment receives a scanning request message, extracts the identification information of the Bluetooth master equipment from the scanning request message and determines that the identification information of the Bluetooth master equipment is matched with the identification information of one bound equipment in a bound equipment set, acquiring a response message sent by the Bluetooth slave equipment; displaying the information of the Bluetooth slave equipment based on the response message, and establishing connection with the Bluetooth slave equipment; and responding to the user login operation on the Bluetooth application program to generate a login message, sending the login message to the Bluetooth slave equipment, and receiving the information of each bound equipment in the bound equipment set fed back by the Bluetooth slave equipment in response to the login message so as to manage each bound equipment in the bound equipment set.
According to a second aspect of the present disclosure, there is provided an interaction method between bluetooth devices, applied to a bluetooth slave device, including: receiving a scanning request message sent by Bluetooth master equipment; extracting identification information of the Bluetooth master device from the scanning request message; comparing the identification information of the Bluetooth master device with the identification information of the bound devices in the bound device set; if the identification information of the Bluetooth master device is matched with the identification information of one bound device in the bound device set, sending a response message to the Bluetooth master device so that the Bluetooth master device can display the information of the Bluetooth slave device based on the response message and establish the connection between the Bluetooth master device and the Bluetooth slave device; and responding to the login message sent by the Bluetooth master device, and sending the information of each bound device in the bound device set to the Bluetooth master device so as to manage each bound device in the bound device set in the Bluetooth master device.
According to a third aspect of the present disclosure, there is provided an interaction apparatus between bluetooth devices, applied to a bluetooth master device, including: the first message sending module is used for sending a scanning request message; wherein, the scanning request message contains the identification information of the Bluetooth master device; the message acquisition module is used for acquiring a response message sent by the Bluetooth slave device under the condition that the Bluetooth slave device receives the scanning request message, extracts the identification information of the Bluetooth master device from the scanning request message and determines that the identification information of the Bluetooth master device is matched with the identification information of one bound device in the bound device set; the connection establishing module is used for displaying the information of the Bluetooth slave equipment based on the response message and establishing connection with the Bluetooth slave equipment; and the device management module is used for responding to the user login operation on the Bluetooth application program, generating a login message, sending the login message to the Bluetooth slave device, and receiving the information of each bound device in the bound device set fed back by the Bluetooth slave device in response to the login message so as to manage each bound device in the bound device set.
According to a fourth aspect of the present disclosure, there is provided an interaction apparatus between bluetooth devices, applied to a bluetooth slave device, including: the message receiving module is used for receiving a scanning request message sent by the Bluetooth main equipment; the information extraction module is used for extracting the identification information of the Bluetooth master device from the scanning request message; the information comparison module is used for comparing the identification information of the Bluetooth master device with the identification information of the bound devices in the bound device set; the second message sending module is used for sending a response message to the Bluetooth master device if the identification information of the Bluetooth master device is matched with the identification information of one bound device in the bound device set, so that the Bluetooth master device displays the information of the Bluetooth slave device based on the response message and establishes the connection between the Bluetooth master device and the Bluetooth slave device; and the device information sending module is used for responding to the login message sent by the Bluetooth main device and sending the information of each bound device in the bound device set to the Bluetooth main device so as to manage each bound device in the bound device set by the Bluetooth main device.
According to a fifth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method of interaction between bluetooth devices.
According to a sixth aspect of the present disclosure, there is provided an electronic device comprising a processor; a memory for storing one or more programs, which when executed by the processor, cause the processor to implement the above-described method of interaction between bluetooth devices.
In the technical solutions provided in some embodiments of the present disclosure, on one hand, after the bluetooth master device is connected to the bluetooth slave device, in response to a user login operation on the bluetooth master device, the bluetooth slave device may send information of a bound device of the bluetooth slave device to the bluetooth master device, so as to implement management of the bound device of the bluetooth slave device at the bluetooth master device; on the other hand, only under the condition that the Bluetooth slave device and the Bluetooth master device are bound in advance, the Bluetooth master device can display the information of the Bluetooth slave device, that is, the Bluetooth master device cannot display the information of the Bluetooth slave device which is not bound in advance, so that the problems that the Bluetooth slave device information is too much displayed on the Bluetooth master device, a user needs to search for the information in a time-consuming manner, the Bluetooth connection process is inconvenient, and mistaken connection possibly exists are avoided; in another aspect, for the bluetooth slave device, only the bluetooth master device bound in advance can display the information of the bluetooth slave device, so that the problem of power consumption increase of the device due to misconnection can be avoided, and potential safety hazards caused by malicious connection due to information exposure can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture for an interaction scheme between Bluetooth devices to which embodiments of the present disclosure may be applied;
FIG. 2 illustrates a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure;
FIG. 3 schematically illustrates an interaction diagram implementing a connection between Bluetooth devices according to one embodiment of the present disclosure;
fig. 4 schematically shows a flowchart of an interaction method between bluetooth devices applied to a bluetooth master device according to an exemplary embodiment of the present disclosure;
FIG. 5 shows a schematic interface diagram for a user account login on a Bluetooth application;
FIG. 6 shows an interface diagram for Bluetooth master binding on a Bluetooth application;
FIG. 7 shows an interface diagram for entering Bluetooth master information on a Bluetooth application;
FIG. 8 is a diagram showing an interface for displaying the binding result on the Bluetooth application;
FIG. 9 illustrates a schematic diagram of fields employed in conducting interactive communications, according to one embodiment of the present disclosure;
FIG. 10 is a diagram illustrating the contents of the corresponding fields of a binding result, according to one embodiment of the present disclosure;
FIG. 11 is a diagram showing a message structure of the Bluetooth standard protocol;
fig. 12 schematically shows a flowchart of an interaction method between bluetooth devices applied to a bluetooth slave device according to an exemplary embodiment of the present disclosure;
fig. 13 is a diagram illustrating an interaction procedure between bluetooth devices according to an exemplary embodiment of the present disclosure;
fig. 14 is a block diagram schematically illustrating an interaction apparatus between bluetooth devices applied to a bluetooth master device according to an exemplary embodiment of the present disclosure;
fig. 15 schematically shows a block diagram of an interaction apparatus between bluetooth devices applied to a bluetooth master device according to another exemplary embodiment of the present disclosure;
fig. 16 is a block diagram schematically illustrating an interaction apparatus between bluetooth devices applied to a bluetooth master device according to an exemplary embodiment of the present disclosure;
fig. 17 is a block diagram schematically illustrating an interaction apparatus between bluetooth devices applied to a bluetooth master device according to another exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, all of the following terms "first" and "second" are used for distinguishing purposes only and should not be construed as limiting the present disclosure.
Fig. 1 shows a schematic diagram of an exemplary system architecture of an interaction scheme between bluetooth devices to which embodiments of the present disclosure may be applied.
As shown in fig. 1, an exemplary system architecture of an interaction scheme between bluetooth devices of an embodiment of the present disclosure may include a bluetooth master device 1100 and a bluetooth slave device 1200.
The bluetooth master device 1100 is generally a device that actively transmits data during bluetooth communication, and specifically includes, but is not limited to, a mobile phone, a tablet, a notebook, and the like. The bluetooth slave 1200 is generally a device that passively receives data during bluetooth communication, and specifically includes, but is not limited to, a bluetooth headset, a bluetooth speaker, a bluetooth bracelet, a bluetooth watch, and the like.
It should be noted that the bluetooth master device 1100 may also refer to a device operating in a master device mode, that is, the bluetooth master device 1100 mainly performs a process of transmitting data when performing bluetooth communication. The bluetooth slave device 1200 may also refer to a device operating in a slave device mode, that is, the bluetooth slave device 1200 mainly performs a process of receiving data when performing bluetooth communication. In this case, the bluetooth master device 1100 and the bluetooth slave device 1200 may be electronic devices such as a mobile phone and a tablet.
In addition, in other embodiments of the present disclosure, the bluetooth master device 1100 and the bluetooth slave device 1200 are named only for distinction, for example, for bluetooth device a and bluetooth device B, in some cases, bluetooth device a may be the bluetooth master device 1100 and bluetooth device B may be the bluetooth slave device 1200. In other cases, bluetooth device a may be a bluetooth slave 1200 and bluetooth device B may be a bluetooth master 1100.
In the interaction scheme between bluetooth devices according to the embodiment of the present disclosure, the bluetooth master device 1100 may send a scan request packet, where the scan request packet includes identification information of the bluetooth master device 1100. The bluetooth slave device 1200 may receive the scan request message, extract the identification information of the bluetooth master device 1100 from the scan request message, compare the identification information of the bluetooth master device 1100 with the identification information of each bound device in the bound device set, and send a response message to the bluetooth master device 1100 when the identification information of the bluetooth master device 1100 matches the identification information of one bound device in the bound device set.
The bluetooth master device 1100 may display information of the bluetooth slave device 1200 based on the response message and establish a connection with the bluetooth slave device 1200.
In the interaction process of the present disclosure, before the bluetooth master device 1100 displays the information of the bluetooth slave device 1200, the bluetooth slave device 1200 needs to verify whether the bluetooth master device 1100 is a bound device, and the bluetooth master device 1100 displays the information of the bluetooth slave device 1200 only when the bluetooth master device 1100 is the bound device. If the bluetooth master device 1100 is not pre-bound with the bluetooth slave device 1200, the bluetooth slave device 1200 may not respond to the received scan request message, for example, directly discard the scan request message.
After establishing the connection, the bluetooth master device 1100 may generate a login message in response to a user login operation for the bluetooth application installed thereon and transmit the login message to the bluetooth slave device 1200. The bluetooth slave 1200 may feed back the information of the bound device to the bluetooth master 1100 in response to the login message, so that the bluetooth master 1100 manages the bound device based on the management operation of the user.
The operation of managing the bound device according to the present disclosure may include, but is not limited to: deleting a bound device, viewing historical connection data of a bound device, limiting usage conditions of a bound device, adding a new bound device, and the like.
In addition, the interaction scheme of the present disclosure further includes a process of binding (or pairing) the bluetooth master device 1100 and the bluetooth slave device 1200 in advance.
Specifically, first, the bluetooth master device 1100 may enter information of the bluetooth master device in an interface of the bluetooth application program in response to an entry operation of the user. Next, the bluetooth master device 1100 may generate a binding message based on information of the bluetooth master device 1100, where the information of the bluetooth master device 1100 at least includes identification information of the bluetooth master device 1100. The bluetooth master device 1100 may then send a binding message to the bluetooth slave device 1200.
The bluetooth slave device 1200 may extract the identification information of the bluetooth master device 1100 from the binding message for storage, thereby implementing an operation of adding the bluetooth master device 1100 to the bound device set, and further implementing a process of binding the bluetooth master device 1100 with the bluetooth slave device 1200.
After the binding, the bluetooth slave device 1200 may feed back a binding result, which corresponds to the information of the bound device, to the bluetooth master device 1100, so that the bluetooth master device 1100 manages the bound device.
It should be noted that, in the exemplary embodiment of the present disclosure, the structures of the messages used for the interaction between the bluetooth master device 1100 and the bluetooth slave device 1200 are all message structures corresponding to the bluetooth standard protocol. Therefore, the processing process of the method does not need to additionally add a custom message, and is easy to realize.
FIG. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. The bluetooth master device and/or the bluetooth slave device according to the exemplary embodiments of the present disclosure may be configured in the form of an electronic device as shown in fig. 2. It should be noted that the electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device of the present disclosure includes at least a processor and a memory for storing one or more programs, which when executed by the processor, cause the processor to implement the method of interaction between bluetooth devices of the exemplary embodiments of the present disclosure.
Specifically, as shown in fig. 2, the electronic device 200 may include: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 271, a microphone 272, a microphone 273, an earphone interface 274, a sensor module 280, a display screen 290, a camera module 291, an indicator 292, a motor 293, a key 294, and a Subscriber Identity Module (SIM) card interface 295, and the like. Among other things, the sensor module 280 may include a depth sensor 2801, a pressure sensor 2802, a gyroscope sensor 2803, a barometric pressure sensor 2804, a magnetic sensor 2805, an acceleration sensor 2806, a distance sensor 2807, a proximity light sensor 2808, a fingerprint sensor 2809, a temperature sensor 2810, a touch sensor 2811, an ambient light sensor 2812, and a bone conduction sensor 2813, among others.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the Processor 210 may include an Application Processor (AP), a modem Processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband Processor, and/or a Neural Network Processor (NPU), and the like. The different processing units may be separate devices or may be integrated into one or more processors. Additionally, a memory may be provided in processor 210 for storing instructions and data.
The USB interface 230 is an interface conforming to the USB standard specification, and may specifically be a MiniUSB interface, a microsusb interface, a USB type c interface, or the like. The USB interface 230 may be used to connect a charger to charge the electronic device 200, and may also be used to transmit data between the electronic device 200 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
The charge management module 240 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. The power management module 241 is used for connecting the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives the input of the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 290, the camera module 291, the wireless communication module 260, and the like.
The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 200.
The Wireless Communication module 260 may provide a solution for Wireless Communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs) (e.g., Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like.
The electronic device 200 implements a display function through the GPU, the display screen 290, the application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 290 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The electronic device 200 may implement a shooting function through the ISP, the camera module 291, the video codec, the GPU, the display screen 290, the application processor, and the like. In some embodiments, the electronic device 200 may include 1 or N camera modules 291, where N is a positive integer greater than 1, and if the electronic device 200 includes N cameras, one of the N cameras is a main camera.
Internal memory 221 may be used to store computer-executable program code, including instructions. The internal memory 221 may include a program storage area and a data storage area. The external memory interface 222 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200.
The electronic device 200 may implement an audio function through the audio module 270, the speaker 271, the receiver 272, the microphone 273, the headphone interface 274, the application processor, and the like. Such as music playing, recording, etc.
Audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. Audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210.
The speaker 271, also called "horn", is used to convert the audio electrical signal into a sound signal. The electronic apparatus 200 can listen to music through the speaker 271 or listen to a handsfree phone call. The receiver 272, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic device 200 receives a call or voice information, it can receive the voice by placing the receiver 272 close to the ear of the person. The microphone 273, also known 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 273 by sounding a voice signal near the microphone 273 through the mouth. The electronic device 200 may be provided with at least one microphone 273. The earphone interface 274 is used to connect wired earphones.
The depth sensor 2801 is used to acquire depth information of a scene with respect to a sensor included in the electronic device 200. The pressure sensor 2802 is used to sense a pressure signal and convert the pressure signal into an electrical signal. The gyro sensor 2803 may be used to determine a motion pose of the electronic device 200. The air pressure sensor 2804 is used to measure air pressure. The magnetic sensor 2805 includes a hall sensor. The electronic device 200 may detect the opening and closing of the flip holster using the magnetic sensor 2805. The acceleration sensor 2806 can detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The distance sensor 2807 is used to measure a distance. The proximity light sensor 2808 may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The fingerprint sensor 2809 is used to collect a fingerprint. The temperature sensor 2810 detects temperature. The touch sensor 2811 may pass the detected touch operation to an application processor to determine a touch event type. Visual output related to the touch operation may be provided through the display screen 290. The ambient light sensor 2812 is used to sense ambient light brightness. Bone conduction sensor 2813 may acquire a vibration signal.
The keys 294 include a power-on key, a volume key, and the like. The keys 294 may be mechanical keys. Or may be touch keys. The motor 293 may generate a vibration indication. The motor 293 may be used for both electrical vibration prompting and touch vibration feedback. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The electronic device 200 interacts with the network through the SIM card to implement functions such as communication and data communication.
The present application also provides a computer-readable storage medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device.
A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable storage medium may transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The computer-readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Fig. 3 schematically illustrates an interaction diagram implementing a connection between bluetooth devices according to one embodiment of the present disclosure. The specific interactive process may include steps S302 to S310.
In step S302, the bluetooth slave broadcasts a broadcast packet requesting binding to transmit it to the bluetooth master within a broadcast range in a state where it can be connected.
In step S304, the bluetooth master device sends a scan request message to the bluetooth slave device in response to the broadcast packet bound to the request, where the scan request message includes identification information of the bluetooth master device. In addition, the bluetooth master device may also actively scan to determine whether there is a bluetooth slave device broadcasting in the current scene.
In step S306, the bluetooth slave device may send a scan response message to the bluetooth master device in response to the scan request message. In this case, the bluetooth scan list of the bluetooth master device presents the information of the bluetooth slave device.
In step S308, the bluetooth master device sends a connection request message to the bluetooth slave device through a click operation, i.e., initiates a connection request.
In step S310, the bluetooth slave device performs connection authentication in response to the connection request message, and sends a connection response message to the bluetooth master device, so as to complete the bluetooth connection process.
In the above process, although the bluetooth connection process can be preferably implemented, no matter whether the bluetooth master device is bound with the bluetooth slave device, the information of the bluetooth slave device is displayed on the bluetooth master device. Under the condition that the Bluetooth master device is not bound with the Bluetooth slave device, the problem of inconvenient operation may exist, and potential safety hazards may also appear.
In addition, the connection scheme shown in fig. 3 does not relate to a scheme of managing bound devices of bluetooth slave devices.
Fig. 4 schematically shows a flowchart of an interaction method between bluetooth devices applied to a bluetooth master device, which may include the steps of:
s42, sending a scanning request message; wherein, the scanning request message contains the identification information of the Bluetooth master device.
In an exemplary embodiment of the present disclosure, the scan request message is a message sent by the bluetooth master device to request bluetooth connection, and the scan request message includes identification information of the bluetooth master device. The identification information of the bluetooth master device may uniquely characterize the bluetooth master device, and the identification information may be, for example, a Media Access Control (MAC) address or an International Mobile Equipment Identity (IMEI).
In addition, the scan request message may further include a device name default or user-defined by the bluetooth master device, and the disclosure does not limit other information included in the scan request message.
When the bluetooth master device is in the bluetooth connection state, the scan request message may be sent outwards, specifically, the scan request message may be sent outwards in a broadcast manner, or the scan request message may be sent outwards in a designated direction. For example, when the user turns on the bluetooth function of the bluetooth master device, the bluetooth master device may be considered to be in the bluetooth connection state.
In some embodiments, a bluetooth scan switch may be configured on the bluetooth master device, and the bluetooth master device generates a scan request message in response to a bluetooth scan start operation of a user for the bluetooth scan switch, and sends the scan request message to the outside.
It should be noted that in the exemplary embodiment of the present disclosure, when the bluetooth master device transmits the scan request message, the bluetooth master device does not display any information of the bluetooth slave device.
And S44, under the condition that the Bluetooth slave equipment receives the scanning request message, extracts the identification information of the Bluetooth master equipment from the scanning request message and determines that the identification information of the Bluetooth master equipment is matched with the identification information of one bound equipment in the bound equipment set, acquiring a response message sent by the Bluetooth slave equipment.
In an exemplary embodiment of the present disclosure, first, the bluetooth slave device may receive a scan request message transmitted by the bluetooth master device. The bluetooth slave device may then extract the identification information of the bluetooth master device from the scan request message.
Next, the bluetooth slave device may compare the identification information of the bluetooth master device with the identification information of the bound devices in the set of bound devices. The bound device set comprises devices which are bound with the Bluetooth slave device in advance in a Bluetooth mode, and the Bluetooth slave device can store identification information of the bound devices by means of a storage list. For example, if there are 5 bound devices in the bound device set corresponding to the bluetooth slave device, the bluetooth slave device needs to compare the identification information of the bluetooth master device with the identification information of the 5 bound devices respectively until it is determined that the matching identification information is obtained or all comparisons are finished.
If the identification information of the bluetooth master device is matched with the identification information of one bound device in the bound device set, it indicates that the bluetooth master device and the bluetooth slave device have been bluetooth bound in advance, and in this case, the bluetooth slave device may send a response message to the bluetooth master device. The response message may include information of the bluetooth slave device, for example, identification information of the bluetooth slave device and/or a device name of the bluetooth slave device.
And S46, displaying the information of the Bluetooth slave equipment based on the response message, and establishing connection with the Bluetooth slave equipment.
The bluetooth master device may display information of the bluetooth slave device based on the response message. Specifically, after the bluetooth master device receives the response message sent by the bluetooth slave device, the information of the bluetooth slave device may be extracted from the response message and displayed on the interface for the user to view. For example, the device name of the bluetooth slave device may be displayed.
It should be noted that after the bluetooth master device sends the scan request message, it may receive a response message fed back by one or more bluetooth slave devices, where the bluetooth slave devices are all devices that are bound with the bluetooth master device in advance, and information of the bluetooth slave devices may be displayed on an interface of the bluetooth master device.
In case only information of one bluetooth slave device is displayed, in one embodiment the bluetooth master device may actively trigger a connection establishment procedure with the bluetooth slave device. In another embodiment, the bluetooth master device may trigger a connection establishment procedure with the bluetooth slave device in response to a user click operation (or selection operation) on information of the bluetooth slave device.
In the case where information of a plurality of bluetooth slave devices is displayed, the bluetooth master device may trigger a connection establishment procedure with one bluetooth slave device in response to a selection operation for the bluetooth slave device.
In addition, some embodiments of the disclosure may also set a connection priority for bluetooth slave devices that have been bound in advance, and in the case that information of a plurality of bluetooth slave devices is displayed, the bluetooth master device may automatically select a bluetooth slave device with the best connection priority from the bluetooth slave devices to connect. The connection priority can be set by a user, and can also be sorted according to the length of the historical connection time of each bluetooth slave device, that is, the connection priority of the bluetooth slave device with the longest historical connection time with the bluetooth master device is the highest, and the connection priority of the bluetooth slave device with the shortest historical connection time with the bluetooth master device is the lowest.
The process of establishing connection between the bluetooth master device and the bluetooth slave device after the bluetooth slave device is displayed is not limited in the present disclosure.
And S48, responding to the user login operation on the Bluetooth application program, generating a login message, sending the login message to the Bluetooth slave equipment, and receiving the information of each bound equipment in the bound equipment set fed back by the Bluetooth slave equipment in response to the login message so as to manage each bound equipment in the bound equipment set.
After the bluetooth master device establishes a connection with the bluetooth slave device, the user may perform a user login operation on the bluetooth application. Fig. 5 shows a schematic interface diagram of a user account login performed on a bluetooth application. After the user inputs the account and the password, the bluetooth master device can generate a login message and send the login message to the bluetooth slave device.
The bluetooth slave device may send information of each bound device in the bound device set to the bluetooth master device in response to the login message, so as to manage each bound device in the bound device set.
In an exemplary embodiment of the present disclosure, the operation of managing the bound device may include, but is not limited to, deleting the bound device, viewing historical connection data of the bound device, limiting a use condition of the bound device, adding a new bound device, and the like.
For example, a user may see that there is a bound device a through an interface of a bluetooth application installed on the bluetooth master device, and at this time, the user may delete the bound device a, that is, delete the device a from the binding list of the bluetooth slave device. For another example, historical data of the connection between the device a and the bluetooth slave device may be checked (for example, a total connection time xx hours, a total connection time xx times, a last connection time xx years xx months xx days, and the like may be checked). For another example, the usage conditions of the device a and the bluetooth slave device may be limited, such as setting the timing, limiting the duration of usage each day, and the like.
In some embodiments of the present disclosure, the bluetooth master device may manage the bound devices of all bluetooth slave devices.
In some embodiments of the present disclosure, a bluetooth master device may only manage bound devices that belong to the same user. For example, the bluetooth slave device is a bluetooth speaker, the bluetooth master device is a mobile phone of the user a, the tablet of the user a exists in the bound device, and the mobile phone of the user b also exists. In this case, the user a can only manage the binding state of the mobile phone and the tablet with the bluetooth speaker through the mobile phone, but cannot manage the binding state of the mobile phone and the bluetooth speaker of the user b.
In addition, the disclosure also provides a process of binding the Bluetooth master device and the Bluetooth slave device in advance. In particular, the binding operation may be implemented by means of a bluetooth application installed on the bluetooth master device.
The method comprises the steps of inputting information of a Bluetooth master device in an interface of a Bluetooth application program, and generating a binding message based on the information of the Bluetooth master device, wherein the information of the Bluetooth master device at least comprises identification information of the Bluetooth master device. The Bluetooth master device sends the binding message to the Bluetooth slave device. The bluetooth slave device may extract the identification information of the bluetooth master device from the binding message and store the identification information to implement a process of adding the bluetooth master device to the bound device set, that is, implement the binding between the bluetooth master device and the bluetooth slave device.
Referring to the drawings, first, after a user logs in or registers through an interface as shown in fig. 5, referring to fig. 6, the user may be prompted for device binding, and after the user determines that the interface of the bluetooth application jumps to an exemplary interface as shown in fig. 7.
On the interface shown in fig. 7, the user can manually input the device name (usually set by the user's customization) and the device MAC address of the bluetooth master device as the entered information of the bluetooth master device. In addition, the entered information may also include information such as a user identifier, which is not limited in this disclosure.
It can be understood that, since the MAC address of the device is fixed and can be directly obtained from the built-in file of the bluetooth master device, the present disclosure may further include an operation of the bluetooth master device entering the MAC address of the device by itself.
Referring to fig. 7, after entering information such as a device name, a device MAC address, etc., when a user clicks a decision button, the bluetooth master device generates a binding message and transmits the binding message to the bluetooth slave device. The bluetooth slave device can extract the identification information of the bluetooth master device from the binding message and store the identification information.
After storing the identification information of the bluetooth master device, the bluetooth slave device may also feed back a binding result to the bluetooth master device, where the binding result includes information of bound devices in the bound device set, so that the bluetooth master device manages the bound devices in response to the operation of the user.
Fig. 8 schematically shows a schematic diagram of displaying information of a bound device on a bluetooth application interface, and as shown in fig. 8, information with a mobile phone number as a device name may be displayed, and the mobile phone number may also be an account number when a bluetooth application logs in. In this case, the user holding the bluetooth master device can manage these bound devices. This includes clicking on the add bound device button to add the new bound device. That is to say, the bluetooth master device can be used to implement the binding process between the other devices and the bluetooth slave device, for example, the user a can not only use the mobile phone to implement the binding between the mobile phone and the bluetooth speaker, but also use the mobile phone to implement the binding between the tablet and the bluetooth speaker.
Referring to fig. 9, interactive communication between the bluetooth master and the bluetooth slave may be implemented using a json format field. The meaning of the fields is explained below by table 1.
TABLE 1
Field(s) Means of
category Representing custom communication protocol names
direction Indicating the direction of transmission
command A specific command representing the message
device_info Device information including bound devices
Uid User identification (for example, account number when user logs in)
FIG. 10 shows a diagram of the contents of the corresponding field of the binding result, according to one embodiment of the present disclosure. Referring to fig. 10, category is a self-defined protocol name (e.g., OPPO _ BLE), transmission direction is a bluetooth application from the bluetooth slave device to the bluetooth master device, and the bound device information includes "a mobile phone" and its MAC address, "b mobile phone" and its MAC address.
In addition, one or more message structures of the scan request message, the response message, the login message, the binding message, and other messages involved in the interaction process may be a message structure corresponding to a bluetooth standard protocol. Fig. 11 shows a schematic diagram of a bluetooth standard protocol, wherein the access address contains identification information of a bluetooth device. Because the message structure corresponding to the Bluetooth standard protocol is adopted, a user-defined message does not need to be additionally added, and the realization is easy.
Further, the present exemplary embodiment also provides a flowchart of an interaction method applied between bluetooth devices of a bluetooth slave device, and referring to fig. 12, the interaction method applied between bluetooth devices of the bluetooth slave device may include the following steps:
s120, receiving a scanning request message sent by the Bluetooth main equipment;
s122, extracting identification information of the Bluetooth main equipment from the scanning request message;
s124, comparing the identification information of the Bluetooth master device with the identification information of the bound devices in the bound device set;
s126, if the identification information of the Bluetooth master device is matched with the identification information of one bound device in the bound device set, sending a response message to the Bluetooth master device so that the Bluetooth master device can display the information of the Bluetooth slave device based on the response message and establish the connection between the Bluetooth master device and the Bluetooth slave device;
and S128, responding to the login message sent by the Bluetooth master device, and sending the information of each bound device in the bound device set to the Bluetooth master device so that the Bluetooth master device can manage each bound device in the bound device set.
The detailed process of step S120 to step S128 is already described in the description of step S42 to step S48, and is not repeated here.
An interactive procedure between bluetooth devices according to an exemplary embodiment of the present disclosure will be described with reference to fig. 13.
In step S1302, the bluetooth slave device may broadcast a bound request.
In step S1304, the bluetooth master device transmits a binding message to the bluetooth slave device in response to the bound request, where the binding message includes identification information of the bluetooth master device.
In step S1306, the bluetooth slave device may extract the identification information of the bluetooth master device, and store the identification information, so as to implement a process of adding the bluetooth master device to the bound device set, that is, complete the binding between the bluetooth master device and the bluetooth slave device.
In step S1308, the bluetooth master device may transmit a scan request message.
In step S1310, the bluetooth slave device receives the scan request message, and extracts the identification information of the bluetooth master device from the scan request message.
In step S1312, the bluetooth slave compares the identification information of the bluetooth master with the identification information of the bound device, determines whether the identification information of the bluetooth master matches the identification information of the bound device, and if so, performs step S1314, and if not, does not respond.
In step S1314, the bluetooth slave device transmits a response message to the bluetooth master device.
In step S1316, the bluetooth master device receives the response message, and displays the information of the bluetooth slave device on the interface of the bluetooth master device.
In step S1318, the bluetooth master device generates a connection request in response to a selection operation of the user for information of the bluetooth slave device, and transmits the connection request to the bluetooth slave device, and the bluetooth slave device completes connection in response to the connection request.
In step S1320, the bluetooth master device transmits a login message to the bluetooth slave device.
In step S1322, the bluetooth slave device feeds back the information of the bound device in response to the login message.
In step S1324, information of the bound device may be displayed on the bluetooth application interface of the bluetooth master device, and in this case, the bound device may be managed in response to a user operation.
In step S1326, the bluetooth master device may transmit the managed result to the bluetooth slave device so that the bluetooth slave device updates the information of the bound device.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, the present exemplary embodiment also provides an interaction apparatus applied between bluetooth devices of a bluetooth master device.
Fig. 14 schematically shows a block diagram of an interaction apparatus between bluetooth devices applied to a bluetooth master device according to an exemplary embodiment of the present disclosure. Referring to fig. 14, the interaction apparatus 14 between bluetooth devices applied to a bluetooth master device according to an exemplary embodiment of the present disclosure may include a first message sending module 141, a message acquiring module 143, a connection establishing module 145, and a device management module 147.
Specifically, the first message sending module 141 may be configured to send a scan request message; wherein, the scanning request message contains the identification information of the Bluetooth master device; the message obtaining module 143 may be configured to obtain a response message sent by the bluetooth slave device when the bluetooth slave device receives the scan request message, extracts the identification information of the bluetooth master device from the scan request message, and determines that the identification information of the bluetooth master device matches the identification information of one bound device in the bound device set; the connection establishing module 145 may be configured to display information of the bluetooth slave device based on the response message, and establish a connection with the bluetooth slave device; the device management module 147 may be configured to generate a login message in response to a user login operation on the bluetooth application, send the login message to the bluetooth slave device, and receive information of each bound device in the bound device set fed back by the bluetooth slave device in response to the login message, so as to manage each bound device in the bound device set.
According to an exemplary embodiment of the present disclosure, referring to fig. 15, the interaction apparatus 15 between bluetooth devices may further include a first binding module 151, compared to the interaction apparatus 14 between bluetooth devices.
In particular, the first binding module 151 may be configured to perform: inputting information of a Bluetooth master device into an interface of a Bluetooth application program in advance, and generating a binding message based on the information of the Bluetooth master device; the information of the Bluetooth master device comprises identification information of the Bluetooth master device; and sending the binding message to the Bluetooth slave device so that the Bluetooth slave device can extract and store the identification information of the Bluetooth master device from the binding message, and the Bluetooth master device is added to the bound device set.
According to an exemplary embodiment of the present disclosure, the first binding module 151 may be further configured to perform: after the Bluetooth slave device stores the identification information of the Bluetooth master device, receiving a binding result fed back by the Bluetooth slave device; and the binding result contains the information of each bound device in the bound device set so as to manage each bound device in the bound device set.
According to an exemplary embodiment of the present disclosure, the structure of one or more of the scan request message, the response message, the login message, and the binding message is a message structure corresponding to a bluetooth standard protocol.
Further, the present exemplary embodiment also provides an interaction apparatus between bluetooth devices, which is applied to a bluetooth slave device.
Fig. 16 schematically shows a block diagram of an interaction apparatus between bluetooth devices applied to a bluetooth slave device according to an exemplary embodiment of the present disclosure. Referring to fig. 16, the interaction apparatus 16 between bluetooth devices applied to a bluetooth slave device according to an exemplary embodiment of the present disclosure may include a message receiving module 161, an information extracting module 163, an information comparing module 165, a second message transmitting module 167, and a device information transmitting module 169.
Specifically, the message receiving module 161 may be configured to receive a scan request message sent by a bluetooth master device; the information extraction module 163 may be configured to extract the identification information of the bluetooth master device from the scan request message; the information comparison module 165 may be configured to compare the identification information of the bluetooth master device with the identification information of the bound devices in the bound device set; the second message sending module 167 may be configured to send a response message to the bluetooth master device if the identification information of the bluetooth master device matches the identification information of one bound device in the bound device set, so that the bluetooth master device displays information of the bluetooth slave device based on the response message and establishes a connection between the bluetooth master device and the bluetooth slave device; the device information sending module 169 may be configured to send, in response to the login packet sent by the bluetooth master device, information of each bound device in the bound device set to the bluetooth master device, so that the bluetooth master device manages each bound device in the bound device set.
According to an exemplary embodiment of the present disclosure, referring to fig. 17, the interacting apparatus 17 between bluetooth devices may further include a second binding module 171, compared to the interacting apparatus 16 between bluetooth devices.
In particular, the second binding module 171 may be configured to perform: receiving a binding message sent by Bluetooth master equipment; the binding message is generated based on the information of the Bluetooth master device recorded in the interface of the Bluetooth application program, and the information of the Bluetooth master device comprises the identification information of the Bluetooth master device; and extracting the identification information of the Bluetooth master device from the binding message and storing the identification information so as to realize the addition of the Bluetooth master device to the bound device set.
According to an exemplary embodiment of the present disclosure, the second binding module 171 may be further configured to perform: after the identification information of the Bluetooth master device is stored, sending a binding result to the Bluetooth master device; the binding result contains the information of each bound device in the bound device set, so that the Bluetooth master device can manage each bound device in the bound device set.
According to an exemplary embodiment of the present disclosure, the structure of one or more of the scan request message, the response message, the login message, and the binding message is a message structure corresponding to a bluetooth standard protocol.
Since each functional module of the interaction apparatus between bluetooth devices in the embodiments of the present disclosure is the same as that in the above-described method embodiments, it is not described herein again.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (12)

1. An interaction method between Bluetooth devices is applied to a Bluetooth master device, and is characterized by comprising the following steps:
sending a scanning request message; wherein, the scanning request message contains the identification information of the Bluetooth master device;
under the condition that the Bluetooth slave device receives the scanning request message, extracts the identification information of the Bluetooth master device from the scanning request message and determines that the identification information of the Bluetooth master device is matched with the identification information of one bound device in the bound device set, acquiring a response message sent by the Bluetooth slave device;
displaying the information of the Bluetooth slave equipment based on the response message, and establishing connection with the Bluetooth slave equipment;
responding to a user login operation on a Bluetooth application program, generating a login message, sending the login message to the Bluetooth slave device, and receiving information of each bound device in the bound device set fed back by the Bluetooth slave device in response to the login message so as to manage each bound device in the bound device set.
2. The method of claim 1, wherein the method further comprises:
inputting information of the Bluetooth master device into an interface of the Bluetooth application program in advance, and generating a binding message based on the information of the Bluetooth master device; the information of the Bluetooth master device comprises identification information of the Bluetooth master device;
and sending the binding message to the Bluetooth slave device so that the Bluetooth slave device extracts and stores the identification information of the Bluetooth master device from the binding message, and the Bluetooth master device is added to the bound device set.
3. The method of claim 2, wherein after the bluetooth slave device stores the identification information of the bluetooth master device, the method further comprises:
receiving a binding result fed back by the Bluetooth slave device;
wherein the binding result includes information of each bound device in the bound device set, so as to manage each bound device in the bound device set.
4. The method according to claim 2, wherein one or more of the scan request message, the response message, the login message, and the binding message are configured as message structures corresponding to a bluetooth standard protocol.
5. An interaction method between Bluetooth devices is applied to Bluetooth slave devices, and is characterized by comprising the following steps:
receiving a scanning request message sent by Bluetooth master equipment;
extracting identification information of the Bluetooth master device from the scanning request message;
comparing the identification information of the Bluetooth master device with the identification information of the bound devices in the bound device set;
if the identification information of the Bluetooth master device is matched with the identification information of one bound device in the bound device set, sending a response message to the Bluetooth master device, so that the Bluetooth master device displays the information of the Bluetooth slave device based on the response message and establishes the connection between the Bluetooth master device and the Bluetooth slave device;
and responding to a login message sent by the Bluetooth master device, and sending information of each bound device in the bound device set to the Bluetooth master device so as to manage each bound device in the bound device set at the Bluetooth master device.
6. The method of claim 5, wherein the method further comprises:
receiving a binding message sent by the Bluetooth master device; the binding message is generated based on information of the Bluetooth master device, which is recorded in an interface of the Bluetooth application program, wherein the information of the Bluetooth master device comprises identification information of the Bluetooth master device;
and extracting and storing the identification information of the Bluetooth master device from the binding message so as to add the Bluetooth master device to the bound device set.
7. The method of claim 6, wherein after storing the identification information of the bluetooth master device, the method further comprises:
sending a binding result to the Bluetooth master device;
wherein the binding result includes information of each bound device in the bound device set, so that the bluetooth master device manages each bound device in the bound device set.
8. The method according to claim 6, wherein one or more of the scan request message, the response message, the login message, and the binding message are configured as message structures corresponding to a bluetooth standard protocol.
9. An interaction device between Bluetooth devices is applied to a Bluetooth master device, and is characterized by comprising:
the first message sending module is used for sending a scanning request message; wherein, the scanning request message contains the identification information of the Bluetooth master device;
a message obtaining module, configured to obtain a response message sent by a bluetooth slave device when the bluetooth slave device receives the scan request message, extracts identification information of the bluetooth master device from the scan request message, and determines that the identification information of the bluetooth master device matches identification information of a bound device in a bound device set;
the connection establishing module is used for displaying the information of the Bluetooth slave equipment based on the response message and establishing connection with the Bluetooth slave equipment;
and the device management module is used for responding to user login operation on a Bluetooth application program, generating a login message, sending the login message to the Bluetooth slave device, and receiving information of each bound device in the bound device set fed back by the Bluetooth slave device in response to the login message so as to manage each bound device in the bound device set.
10. An interaction device between Bluetooth devices, applied to a Bluetooth slave device, comprising:
the message receiving module is used for receiving a scanning request message sent by the Bluetooth main equipment;
the information extraction module is used for extracting the identification information of the Bluetooth master device from the scanning request message;
the information comparison module is used for comparing the identification information of the Bluetooth master device with the identification information of the bound devices in the bound device set;
a second message sending module, configured to send a response message to the bluetooth master device if the identifier information of the bluetooth master device matches with the identifier information of one bound device in the bound device set, so that the bluetooth master device displays information of the bluetooth slave device based on the response message and establishes a connection between the bluetooth master device and the bluetooth slave device;
and the device information sending module is used for responding to the login message sent by the Bluetooth master device and sending the information of each bound device in the bound device set to the Bluetooth master device so as to manage each bound device in the bound device set in the Bluetooth master device.
11. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method of interaction between bluetooth devices according to any one of claims 1 to 8.
12. An electronic device, comprising:
a processor;
a memory for storing one or more programs which, when executed by the processor, cause the processor to implement the method of interaction between bluetooth devices as claimed in any one of claims 1 to 8.
CN202010345217.1A 2020-04-27 2020-04-27 Interaction method and device between Bluetooth devices, storage medium and electronic device Active CN111615090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010345217.1A CN111615090B (en) 2020-04-27 2020-04-27 Interaction method and device between Bluetooth devices, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010345217.1A CN111615090B (en) 2020-04-27 2020-04-27 Interaction method and device between Bluetooth devices, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111615090A true CN111615090A (en) 2020-09-01
CN111615090B CN111615090B (en) 2023-07-14

Family

ID=72198305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010345217.1A Active CN111615090B (en) 2020-04-27 2020-04-27 Interaction method and device between Bluetooth devices, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111615090B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804651A (en) * 2020-12-29 2021-05-14 武汉联影智融医疗科技有限公司 Binding method and device and computer equipment
CN114466339A (en) * 2021-06-18 2022-05-10 荣耀终端有限公司 Bluetooth pairing method and electronic equipment
WO2023246055A1 (en) * 2022-06-23 2023-12-28 Oppo广东移动通信有限公司 Bluetooth device configuration method and apparatus, electronic device, and storage medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103228059A (en) * 2013-04-02 2013-07-31 深圳市文鼎创数据科技有限公司 Method and device for processing bluetooth pairing information
CN103227862A (en) * 2013-04-02 2013-07-31 深圳市文鼎创数据科技有限公司 Method and device for processing connection of bluetooth
CN103561479A (en) * 2013-10-17 2014-02-05 东软熙康健康科技有限公司 Bluetooth device communication method and device
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN104967971A (en) * 2015-06-26 2015-10-07 飞天诚信科技股份有限公司 Method achieving bluetooth automatic return connection in Android system
CN105516903A (en) * 2015-09-30 2016-04-20 北京清川科技有限公司 Control method and system for achieving connection with multiple Bluetooth devices
CN105792106A (en) * 2016-03-01 2016-07-20 深圳市文鼎创数据科技有限公司 Bluetooth pairing record managing method and device
US20160278006A1 (en) * 2013-11-06 2016-09-22 Lg Electronics Inc. Method for transmitting and receiving data in wireless communication system and apparatus for performing the same
CN106102184A (en) * 2016-07-15 2016-11-09 杭州赫智电子科技有限公司 A kind of for managing the system and method that bluetooth equipment binding connects
CN106427884A (en) * 2016-10-31 2017-02-22 四川长虹电器股份有限公司 Security identity recognition method based on Bluetooth communication
CN106792448A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 Bluetooth connecting method and device, system
CN107197346A (en) * 2017-05-27 2017-09-22 深圳Tcl新技术有限公司 Television terminal and bluetooth equipment return even method and computer-readable recording medium
CN108810861A (en) * 2018-05-28 2018-11-13 北京小米移动软件有限公司 Connection method, device and the storage medium of smart machine
CN109005532A (en) * 2018-09-11 2018-12-14 北京华大智宝电子系统有限公司 A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices
CN109068397A (en) * 2018-08-27 2018-12-21 江苏盖睿健康科技有限公司 Bluetooth binding method and system
KR20190134262A (en) * 2018-05-25 2019-12-04 이에스산전주식회사 System for controlling entrance and exit using BLE and method for controlling entrance and exit using thereof
CN110602676A (en) * 2019-09-09 2019-12-20 飞天诚信科技股份有限公司 Method for preventing hardware wallet from being maliciously paired
CN110809308A (en) * 2019-09-29 2020-02-18 上海商米科技集团股份有限公司 Method and device for automatically connecting IOT device and WIFI router

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378145B (en) * 2014-11-27 2018-08-31 北京深思数盾科技股份有限公司 The matching method and system of bluetooth equipment
CN104540132B (en) * 2015-01-15 2019-05-17 天地融科技股份有限公司 The means of communication, mobile device, electronic signature equipment and the server of bluetooth equipment
CN104994106B (en) * 2015-07-13 2018-04-10 河南中盾云安全研究中心 Pairing/solution pairing system and method for smart mobile phone and wearable device
CN205546053U (en) * 2016-01-29 2016-08-31 深圳世元云标识科技有限公司 LED bluetooth intelligent control ware
CN110519736B (en) * 2019-08-30 2022-04-26 上海能塔智能科技有限公司 Bluetooth device switch connection method and device and computer readable storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103228059A (en) * 2013-04-02 2013-07-31 深圳市文鼎创数据科技有限公司 Method and device for processing bluetooth pairing information
CN103227862A (en) * 2013-04-02 2013-07-31 深圳市文鼎创数据科技有限公司 Method and device for processing connection of bluetooth
CN103561479A (en) * 2013-10-17 2014-02-05 东软熙康健康科技有限公司 Bluetooth device communication method and device
US20160278006A1 (en) * 2013-11-06 2016-09-22 Lg Electronics Inc. Method for transmitting and receiving data in wireless communication system and apparatus for performing the same
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN104967971A (en) * 2015-06-26 2015-10-07 飞天诚信科技股份有限公司 Method achieving bluetooth automatic return connection in Android system
CN105516903A (en) * 2015-09-30 2016-04-20 北京清川科技有限公司 Control method and system for achieving connection with multiple Bluetooth devices
CN105792106A (en) * 2016-03-01 2016-07-20 深圳市文鼎创数据科技有限公司 Bluetooth pairing record managing method and device
CN106102184A (en) * 2016-07-15 2016-11-09 杭州赫智电子科技有限公司 A kind of for managing the system and method that bluetooth equipment binding connects
CN106427884A (en) * 2016-10-31 2017-02-22 四川长虹电器股份有限公司 Security identity recognition method based on Bluetooth communication
CN106792448A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 Bluetooth connecting method and device, system
CN107197346A (en) * 2017-05-27 2017-09-22 深圳Tcl新技术有限公司 Television terminal and bluetooth equipment return even method and computer-readable recording medium
KR20190134262A (en) * 2018-05-25 2019-12-04 이에스산전주식회사 System for controlling entrance and exit using BLE and method for controlling entrance and exit using thereof
CN108810861A (en) * 2018-05-28 2018-11-13 北京小米移动软件有限公司 Connection method, device and the storage medium of smart machine
CN109068397A (en) * 2018-08-27 2018-12-21 江苏盖睿健康科技有限公司 Bluetooth binding method and system
CN109005532A (en) * 2018-09-11 2018-12-14 北京华大智宝电子系统有限公司 A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices
CN110602676A (en) * 2019-09-09 2019-12-20 飞天诚信科技股份有限公司 Method for preventing hardware wallet from being maliciously paired
CN110809308A (en) * 2019-09-29 2020-02-18 上海商米科技集团股份有限公司 Method and device for automatically connecting IOT device and WIFI router

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804651A (en) * 2020-12-29 2021-05-14 武汉联影智融医疗科技有限公司 Binding method and device and computer equipment
CN114466339A (en) * 2021-06-18 2022-05-10 荣耀终端有限公司 Bluetooth pairing method and electronic equipment
WO2023246055A1 (en) * 2022-06-23 2023-12-28 Oppo广东移动通信有限公司 Bluetooth device configuration method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN111615090B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US10452349B2 (en) Electronic device and operation control method therefor
CN111629366B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111615090B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
EP3177077A1 (en) Method and device for network access
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
CN111078448B (en) Method for processing audio abnormity and electronic equipment
US20170156166A1 (en) Method and Apparatus for Connecting With Controlled Smart Device, and Storage Medium
KR101123118B1 (en) An apparatus for video communication in a dual standby portable terminal and a method thereof
KR20160035987A (en) Method and apparatus for wireless communication betweeen communication terminals
CN112039699B (en) Network slice selection method and device, storage medium and electronic equipment
CN105532634A (en) Ultrasonic wave mosquito repel method, device and system
CN101087151A (en) Remote control system and method for portable device
JPWO2015044994A1 (en) TV call equipment
CN112887926B (en) Calling method and device
CN111212412A (en) Near field communication method and device, computer readable storage medium and electronic equipment
CN111382418B (en) Application program authority management method and device, storage medium and electronic equipment
CN107819740B (en) Terminal device verification method, terminal device, sound box, server and medium
CN113489844B (en) Volume gear adjusting method and electronic equipment
CN113170279B (en) Communication method based on low-power Bluetooth and related device
US20170118586A1 (en) Voice data transmission processing method, terminal and computer storage medium
CN114827069A (en) Multimedia data sharing method and device
CN108200636A (en) Navigation information methods of exhibiting, terminal
CN111263017B (en) Call mode control method and device, storage medium and electronic equipment
JP2020030739A (en) Communication device, and control method and program thereof
CN111400004B (en) Video scanning interrupt processing method and device, storage medium and electronic equipment

Legal Events

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