CN110891260A - Bluetooth connection method, equipment, terminal, system and storage medium - Google Patents
Bluetooth connection method, equipment, terminal, system and storage medium Download PDFInfo
- Publication number
- CN110891260A CN110891260A CN201911233538.6A CN201911233538A CN110891260A CN 110891260 A CN110891260 A CN 110891260A CN 201911233538 A CN201911233538 A CN 201911233538A CN 110891260 A CN110891260 A CN 110891260A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- wireless charging
- hardware address
- mobile communication
- data packet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000010295 mobile communication Methods 0.000 claims abstract description 134
- 230000000977 initiatory effect Effects 0.000 claims description 22
- 238000004891 communication Methods 0.000 claims description 12
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims 1
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 210000001072 colon Anatomy 0.000 description 1
- 230000005674 electromagnetic induction Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth connection method, equipment, a terminal, a system and a storage medium. The method establishes a wireless charging connection with the mobile communication device, wherein the wireless charging connection follows a wireless charging protocol; encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is transmitted to the mobile communication device through the wireless charging protocol; receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication device. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
Description
Technical Field
Embodiments of the present invention relate to information transmission technologies, and in particular, to a method, device, terminal, system, and storage medium for bluetooth connection.
Background
When the traditional Bluetooth terminal is connected with the electronic equipment through Bluetooth, the user needs to select the Bluetooth terminal from the electronic equipment, so that the Bluetooth connection between the Bluetooth terminal and the electronic equipment can be realized.
Take the example of connecting a bluetooth speaker to an electronic device (mobile communication device, tablet computer) capable of playing music. The bluetooth speaker first needs to send out a broadcast packet containing its own bluetooth MAC address through a bluetooth broadcast protocol. In the interface set by the Bluetooth, the electronic equipment can establish the corresponding Bluetooth connection only after the user selects the name of the Bluetooth sound box equipment and analyzes the MAC address of the name. Such an operation is cumbersome, and the user needs to wait for a long time before the electronic device can be connected with the bluetooth terminal.
Disclosure of Invention
The invention provides a Bluetooth connection method, equipment, a terminal, a system and a storage medium, which aim to solve the problem that a user needs to manually select complicated operations when a Bluetooth terminal is connected with mobile communication equipment.
In a first aspect, an embodiment of the present invention provides a method for bluetooth connection, including:
establishing a wireless charging connection with a mobile communication device, the wireless charging connection conforming to a wireless charging protocol;
encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is sent to the mobile communication equipment through the wireless charging protocol;
receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address;
and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication equipment.
On this basis, the encapsulating the first hardware address into a data packet according to the format of the wireless charging protocol, so that the data packet is sent to the mobile communication device through the wireless charging protocol, includes:
determining a first hardware address;
the first hardware address is used as a data message part, a preamble part, a header part and a check code part, and is packaged into a data packet together;
transmitting the data packet to the mobile communication device over a wireless communication protocol.
In a second aspect, an embodiment of the present invention further provides a method for bluetooth connection, where the method includes:
receiving a data packet according to a wireless charging connection established with a Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol;
parsing the data packet to obtain the first hardware address;
and initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
On the basis, a Bluetooth terminal sends a Bluetooth broadcast, wherein the Bluetooth broadcast comprises a second hardware address of the Bluetooth terminal;
the initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to realize bluetooth connection with the bluetooth terminal includes:
receiving a second hardware address sent by a plurality of Bluetooth terminals through Bluetooth broadcasting;
determining a third hardware address matching the first hardware address from the second hardware address;
and initiating a Bluetooth connection request to the Bluetooth terminal corresponding to the third hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
On this basis, a bluetooth terminal sends a bluetooth broadcast to indicate that the bluetooth terminal is waiting to be connected;
the initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to realize bluetooth connection with the bluetooth terminal includes:
detecting a plurality of Bluetooth terminals waiting to be connected in the range of the mobile communication equipment as terminals to be matched;
sending a Bluetooth connection request to the terminal to be matched, wherein the Bluetooth connection request carries the first hardware address;
and receiving the Bluetooth terminal responding to the Bluetooth connection request so as to realize Bluetooth connection with the Bluetooth terminal.
In a third aspect, an embodiment of the present invention further provides a bluetooth terminal, including:
a first wireless charging module for establishing a wireless charging connection with a mobile communication device, the wireless charging connection following a wireless charging protocol;
the first processing module is used for encapsulating the first hardware address into a data packet according to the format of the wireless charging protocol so as to enable the data packet to be sent to the mobile communication equipment through the wireless charging protocol;
the first Bluetooth module is used for receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; the mobile communication device is used for responding to the Bluetooth connection request so as to realize Bluetooth connection with the mobile communication device.
In a fourth aspect, an embodiment of the present invention further provides a mobile communication device, including:
the second wireless charging module is used for receiving a data packet according to a wireless charging connection established with the Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol;
the second processing module is used for analyzing the data packet to obtain the first hardware address;
and the second Bluetooth module is used for initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
In a fourth aspect, an embodiment of the present invention further provides a bluetooth connection system, including: a mobile communication device and a bluetooth terminal;
the Bluetooth terminal comprises a first wireless charging module, a first processing module and a first Bluetooth module;
the first processing module is used for encapsulating a first hardware address into a data packet according to the format of a wireless charging protocol; the first wireless charging module is used for establishing wireless charging connection with the mobile communication equipment and sending the data packet to the mobile communication equipment through a wireless charging protocol;
the mobile communication equipment comprises a second wireless charging module, a second processing module and a second Bluetooth module;
the second wireless charging module is used for performing wireless charging connection with the first wireless charging module according to a format of a wireless charging protocol; the second processing module is used for analyzing the data packet to obtain the first hardware address;
the second Bluetooth module is used for initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address, and the first Bluetooth module is used for responding to the Bluetooth connection request so as to realize Bluetooth connection with the mobile communication equipment.
The embodiment of the invention establishes wireless charging connection with the mobile communication equipment, and the wireless charging connection follows a wireless charging protocol; encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is transmitted to the mobile communication device through the wireless charging protocol; receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication device. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
Drawings
Fig. 1 is a flowchart of a method for bluetooth connection according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for bluetooth connection according to an embodiment of the present invention;
fig. 3 is a flowchart of a bluetooth connection method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for bluetooth connection according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for bluetooth connection according to a fifth embodiment of the present invention;
fig. 6 is a structural diagram of a bluetooth terminal according to a sixth embodiment of the present invention;
fig. 7 is a block diagram of a mobile communication device according to a seventh embodiment of the present invention;
fig. 8 is a structural diagram of a bluetooth connection system according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a bluetooth connection method according to an embodiment of the present invention. The embodiment is suitable for a scene that the Bluetooth connection between the wireless charging Bluetooth terminal and the mobile communication equipment is established. The method may be performed by a bluetooth connected device, which may be implemented by software and/or hardware.
Wherein, the Wireless charging technology (Wireless charging technology) is derived from the Wireless power transmission technology. For charging mobile communication devices, electromagnetic induction (such as Qi mode) is generally used. Because the charger and the electric device transmit energy by magnetic field, the charger and the electric device are not connected by electric wires, so that no conductive contact is exposed.
The bluetooth technology stipulates that when each pair of equipment carries out bluetooth communication, one of the equipment is required to be a master role, and the other equipment is required to be a slave role, so that the communication can be carried out. Theoretically, one bluetooth master device can communicate with 7 bluetooth slave devices simultaneously. A device with Bluetooth communication function can be switched between two roles, normally works in a slave mode, waits for other master devices to connect, and is switched into the master mode to initiate a call to other devices when needed. When one bluetooth device initiates a call in a master mode, the bluetooth device needs to know the information of the other party such as the bluetooth address, the pairing password and the like, and can directly initiate the call after the pairing is completed.
The method specifically comprises the following steps:
s101, establishing wireless charging connection with the mobile communication device.
Generally, a bluetooth terminal including a wireless charging function has a charging range, establishes a wireless charging connection with a mobile communication device when the mobile communication device is detected within the charging range, and charges the mobile communication device based on the connection. The wireless charging connection of the bluetooth terminal and the mobile communication device follows a wireless charging protocol.
S102, encapsulating the first hardware address into a data packet according to the format of the wireless charging protocol, so that the data packet is sent to the mobile communication equipment through the wireless charging protocol.
The format of the wireless charging protocol is determined, and different wireless charging protocols may encapsulate data in different formats.
Specifically, the first hardware address is encapsulated according to a format adopted by a wireless charging protocol to obtain a data packet. The encapsulation mode of the first hardware address conforms to the wireless charging protocol. Thus, the data packet may be transmitted to the mobile communication device via the wireless charging protocol.
S103, receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address.
The bluetooth master (mobile communication device) device initiates a call, firstly searches for a bluetooth terminal which is located around and can be searched. After finding the slave end Bluetooth terminal, the master end device is paired with the slave end Bluetooth device, and at the moment, the PIN code of the slave end device needs to be input, and the PIN code does not need to be input by other devices. After the pairing is completed, the slave Bluetooth terminal records the trust information of the master equipment, at the moment, the master can initiate a call to the slave equipment, and the paired equipment does not need to be paired again when calling next time. The paired device, the bluetooth headset as the slave, may also initiate a link establishment request, but the bluetooth module in data communication does not generally initiate a call. After the link is successfully established, bidirectional data or voice communication can be carried out between the master end and the slave end. In the communication state, both the master end device and the slave end device can initiate the chain breaking and break the Bluetooth link.
Specifically, the mobile communication device determines a first hardware address after analyzing the data packet, and receives and sends a bluetooth connection request to the bluetooth terminal according to the first hardware address.
And S104, responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication equipment.
The Bluetooth terminal responds to a Bluetooth connection request initiated by the mobile communication equipment to realize Bluetooth connection with the mobile communication equipment.
The embodiment of the invention establishes wireless charging connection with the mobile communication equipment, and the wireless charging connection follows a wireless charging protocol; encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is transmitted to the mobile communication device through the wireless charging protocol; receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication device. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
Example two
Fig. 2 is a flowchart of a bluetooth connection method according to an embodiment of the present invention. In this embodiment, a detailed process of encapsulating the first hardware address into the data packet is described on the basis of the first embodiment.
The method specifically comprises the following steps:
s201, establishing wireless charging connection with the mobile communication device.
S202, determining a first hardware address.
The first hardware Address is a Media Access Control Address (MAC Address) of the bluetooth terminal, which is an Address for confirming the location of the network device. In the OSI model, a third layer network layer is responsible for IP addresses and a second layer data link layer is responsible for MAC addresses. The MAC address is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs to have a unique MAC address. Each device in the network has a unique network identifier, which is called a MAC address or network card address, written inside the hardware when produced by the network device manufacturer. The MAC address is 48 bits (6 bytes), and is usually represented by 12 16-ary numbers, and every 2 16-ary numbers are separated by a colon, such as 08: 00: 20: 0A: 8C: 6D is a MAC address.
S203, the first hardware address is used as a data message part, a preamble part, a header part and a check code part, and the data message part, the preamble part, the header part and the check code part are packaged into a data packet together.
Generally, taking QI protocol as an example of the wireless charging protocol, the packet format includes two types: data packets from the receiver to the transmitter and data packets from the transmitter to the receiver.
The data packet from the receiver to the transmitter comprises: a preamble part, a header part, a data message part and a check code part. The preamble part comprises more than 4 preamble bits, each bit is '1', and the check code part performs exclusive-or processing on the header part and the data message part.
The data packet from the transmitter to the receiver comprises: a header portion, a datagram portion, and a check code portion.
S204, the data packet is sent to the mobile communication equipment through a wireless communication protocol.
The first hardware address is encapsulated into a data packet, and the data packet is transmitted according to a wireless communication protocol with the mobile communication device.
S205, receiving a Bluetooth connection request initiated by the mobile communication device according to the first hardware address.
S206, responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication equipment.
The embodiment of the invention establishes wireless charging connection with the mobile communication equipment, and the wireless charging connection follows a wireless charging protocol; encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is transmitted to the mobile communication device through the wireless charging protocol; receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication device. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
EXAMPLE III
Fig. 3 is a flowchart of a bluetooth connection method according to a third embodiment of the present invention. The embodiment is suitable for a scene that the Bluetooth connection between the wireless charging Bluetooth terminal and the mobile communication equipment is established. The method may be performed by a bluetooth connected device, which may be implemented by software and/or hardware, and specifically comprises the steps of:
s301, receiving a data packet according to the wireless charging connection established with the Bluetooth terminal.
Generally, a bluetooth terminal including a wireless charging function has a charging range, and when a mobile communication device is detected within the charging range of the bluetooth terminal, the mobile communication device establishes a wireless charging connection with the bluetooth terminal and starts charging. The wireless charging connection of the bluetooth terminal and the mobile communication device follows a wireless charging protocol. Based on the wireless charging protocol, the mobile communication device receives a data packet including a first hardware address of the bluetooth terminal encapsulated in a format of the wireless charging protocol.
S302, the data packet is analyzed to obtain the first hardware address.
The format of the wireless charging protocol is determined, and different wireless charging protocols may encapsulate data in different formats.
Specifically, according to a format adopted by the wireless charging protocol, the mobile communication device analyzes the data packet to obtain the first hardware address.
S303, initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
And the mobile communication equipment initiates a Bluetooth connection request to the Bluetooth terminal according to the first hardware address. When the Bluetooth terminal responds to a Bluetooth connection request initiated by the mobile communication equipment, the Bluetooth connection with the mobile communication equipment is realized.
The embodiment of the invention receives a data packet through a wireless charging connection established with a Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol; analyzing the data packet to obtain a first hardware address; and initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
Example four
Fig. 4 is a flowchart of a bluetooth connection method according to a fourth embodiment of the present invention. In this embodiment, a detailed process of initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to implement bluetooth connection with the bluetooth terminal is described on the basis of the third embodiment. In this embodiment, the bluetooth terminal transmits a bluetooth broadcast that includes the second hardware address of the bluetooth terminal. The method specifically comprises the following steps:
s401, receiving a data packet according to the wireless charging connection established with the Bluetooth terminal.
S402, analyzing the data packet to obtain the first hardware address.
S403, receiving second hardware addresses sent by the plurality of Bluetooth terminals through Bluetooth broadcasting.
S404, determining a third hardware address matched with the first hardware address from the second hardware address.
S405, a Bluetooth connection request is sent to the Bluetooth terminal corresponding to the third hardware address, so that Bluetooth connection with the Bluetooth terminal is achieved.
Specifically, the bluetooth terminal including the wireless charging function has a charging range, and when the mobile communication device is detected within the charging range of the bluetooth terminal, the mobile communication device establishes a wireless charging connection with the bluetooth terminal and starts charging. The wireless charging connection of the bluetooth terminal and the mobile communication device follows a wireless charging protocol. Based on the wireless charging protocol, the mobile communication device receives a data packet including a first hardware address of the bluetooth terminal encapsulated in a format of the wireless charging protocol.
The format of the wireless charging protocol is determined, and different wireless charging protocols may encapsulate data in different formats. According to the format adopted by the wireless charging protocol, the mobile communication equipment analyzes and processes the data packet to obtain a first hardware address.
The Bluetooth terminal sends the hardware address of the Bluetooth terminal to the outside in a broadcasting mode, and the hardware address sent in the broadcasting mode is recorded as a second hardware address in order to distinguish the hardware address from the hardware address in the data packet sent by the wireless charging protocol.
The bluetooth detection module in the mobile communication device receives the second hardware addresses sent by the plurality of bluetooth terminals, and generally, the second hardware addresses may be stored in the mobile communication device in a form of a list.
And the mobile communication equipment determines a third hardware address matched with the first hardware address from the second hardware address according to the received first hardware address. And after the third hardware address is determined, initiating a Bluetooth connection request to the Bluetooth terminal corresponding to the third hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
EXAMPLE five
Fig. 5 is a flowchart of a bluetooth connection method according to a fifth embodiment of the present invention. In this embodiment, a detailed process of initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to implement bluetooth connection with the bluetooth terminal is described on the basis of the third embodiment. In this embodiment, the bluetooth terminal transmits a bluetooth broadcast to indicate that the bluetooth terminal is waiting to be connected. The method specifically comprises the following steps:
s501, receiving a data packet according to the wireless charging connection established with the Bluetooth terminal.
S502, analyzing the data packet to obtain the first hardware address.
S503, detecting a plurality of Bluetooth terminals waiting to be connected in the range of the mobile communication equipment as terminals to be matched.
S504, a Bluetooth connection request is sent to the terminal to be matched.
And S505, receiving the Bluetooth terminal responding to the Bluetooth connection request so as to realize Bluetooth connection with the Bluetooth terminal.
Specifically, the bluetooth terminal including the wireless charging function has a charging range, and when the mobile communication device is detected within the charging range of the bluetooth terminal, the mobile communication device establishes a wireless charging connection with the bluetooth terminal and starts charging. The wireless charging connection of the bluetooth terminal and the mobile communication device follows a wireless charging protocol. Based on the wireless charging protocol, the mobile communication device receives a data packet including a first hardware address of the bluetooth terminal encapsulated in a format of the wireless charging protocol.
The format of the wireless charging protocol is determined, and different wireless charging protocols may encapsulate data in different formats. According to the format adopted by the wireless charging protocol, the mobile communication equipment analyzes and processes the data packet to obtain a first hardware address.
The Bluetooth terminal sends information to be connected outwards in a broadcasting mode, and the middle of the information to be connected comprises a hardware address of the Bluetooth terminal.
The bluetooth detection module in the mobile communication device receives the information to be connected sent by the plurality of bluetooth terminals, and generally, names of the bluetooth terminals that can be connected can be stored in the mobile communication device in a form of a list.
The mobile communication equipment sends a Bluetooth connection request to a Bluetooth terminal which can be connected, wherein the Bluetooth connection request comprises a first hardware address obtained by the analysis of the mobile communication equipment. And the Bluetooth terminal analyzes the Bluetooth connection request, and responds to the Bluetooth connection request if the first hardware address is consistent with the hardware address of the Bluetooth terminal. To enable bluetooth connection with a bluetooth terminal.
EXAMPLE six
Fig. 6 is a structural diagram of a bluetooth terminal according to a sixth embodiment of the present invention. The bluetooth terminal includes: a first wireless charging module 61, a first processing module 62 and a first bluetooth module 63. Wherein:
a first wireless charging module 61 for establishing a wireless charging connection with the mobile communication device, the wireless charging connection following a wireless charging protocol;
the first processing module 62 is configured to encapsulate the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is sent to the mobile communication device through the wireless charging protocol;
the first bluetooth module 63 is configured to receive a bluetooth connection request initiated by the mobile communication device according to the first hardware address; the mobile communication device is used for responding to the Bluetooth connection request so as to realize Bluetooth connection with the mobile communication device.
The embodiment of the invention establishes wireless charging connection with the mobile communication equipment, and the wireless charging connection follows a wireless charging protocol; encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is transmitted to the mobile communication device through the wireless charging protocol; receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication device. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
On the basis of the above embodiment, the first processing module 62 includes:
the first address determination submodule is used for determining a first hardware address;
the data packet packaging sub-module is used for packaging the first hardware address serving as a data message part, a preamble part, a header part and a check code part into a data packet;
and the data packet sending submodule is used for sending the data packet to the mobile communication equipment through a wireless communication protocol.
The bluetooth terminal provided by this embodiment can be used to execute the method for bluetooth connection provided by the first and second embodiments, and has corresponding functions and advantages.
EXAMPLE seven
Fig. 7 is a block diagram of a mobile communication device according to a seventh embodiment of the present invention. The mobile communication device includes:
a second wireless charging module 71, configured to receive a data packet according to a wireless charging connection established with a bluetooth terminal, where the data packet includes a first hardware address of the bluetooth terminal encapsulated according to a format of a wireless charging protocol;
a second processing module 72, configured to parse the data packet to obtain the first hardware address;
and the second bluetooth module 73 is configured to initiate a bluetooth connection request to the bluetooth terminal according to the first hardware address, so as to implement bluetooth connection with the bluetooth terminal.
The embodiment of the invention receives a data packet through a wireless charging connection established with a Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol; analyzing the data packet to obtain a first hardware address; and initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal. The first hardware address of the Bluetooth terminal is transmitted through wireless charging, so that the mobile communication equipment can be connected with the Bluetooth terminal quickly and conveniently in a Bluetooth mode.
On the basis of the above embodiment, a bluetooth terminal sends a bluetooth broadcast, where the bluetooth broadcast includes the second hardware address of the bluetooth terminal, and the second bluetooth module 73 includes:
the second address receiving submodule is used for receiving a second hardware address sent by a plurality of Bluetooth terminals through Bluetooth broadcasting;
a third address determination submodule, configured to determine, from the second hardware address, a third hardware address that matches the first hardware address;
and the connection request submodule is used for initiating a Bluetooth connection request to the Bluetooth terminal corresponding to the third hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
On the basis of the above embodiment, a bluetooth terminal transmits a bluetooth broadcast to indicate that the bluetooth terminal is waiting to be connected, and the second bluetooth module 73 includes:
the initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to realize bluetooth connection with the bluetooth terminal includes:
the terminal detection submodule is used for detecting a plurality of Bluetooth terminals waiting to be connected in the range of the mobile communication equipment and taking the Bluetooth terminals as terminals to be matched;
the connection request submodule is used for sending a Bluetooth connection request to the terminal to be matched, and the Bluetooth connection request carries the first hardware address;
a response receiving submodule for receiving the Bluetooth terminal responding to the Bluetooth connection request to realize Bluetooth connection with the Bluetooth terminal
The mobile communication device provided by this embodiment can be used to execute the method for bluetooth connection provided by the third embodiment, the fourth embodiment and the fifth embodiment, and has corresponding functions and advantages.
Example eight
Fig. 8 is a structural diagram of a bluetooth connection system according to a fifth embodiment of the present invention. The embodiment is suitable for a scene that the Bluetooth connection between the wireless charging Bluetooth terminal and the mobile communication equipment is established. The method comprises the following steps:
the Bluetooth terminal comprises a first wireless charging module, a first processing module and a first Bluetooth module; the first processing module is used for encapsulating a first hardware address into a data packet according to the format of a wireless charging protocol; the first wireless charging module is used for establishing wireless charging connection with the mobile communication equipment and sending the data packet to the mobile communication equipment through a wireless charging protocol;
the first wireless charging module comprises a power supply module, an MCU control module, a sensing module, an oscillating circuit and a primary coil, wherein the power supply module is connected with the MCU control module and provides electric energy for the MCU control module; the MCU control module is connected with the oscillating circuit through the control circuit to control the power supply voltage of the oscillating circuit, specifically, the control circuit of the embodiment comprises an electronic switch circuit and a voltage reduction circuit which are connected with the MCU control module, the electronic switch circuit and the voltage reduction circuit are respectively connected with the oscillating circuit, and the MCU control module achieves the purpose of controlling the power supply voltage of the oscillating circuit by controlling the working states of the electronic switch circuit and the voltage reduction circuit; the oscillating circuit is connected with the primary coil to form an alternating magnetic field on the primary coil; the sensing module comprises an infrared sensor for identifying the type of the charging equipment according to the shape and the size of the charging equipment, the infrared sensor is connected with the MCU control module so as to transmit an identification signal of the type of the charging equipment to the MCU control module, and the MCU control module controls the power supply voltage of the oscillating circuit through the control circuit according to the identification signal so as to adjust the output power of the primary coil.
The first processing module is used for encapsulating the first hardware address according to a protocol used by the first wireless charging module and transmitting the first hardware address according to the protocol used by the first wireless charging module and the second wireless charging module.
The mobile communication equipment comprises a second wireless charging module, a second processing module and a second Bluetooth module; the second wireless charging module is used for performing wireless charging connection with the first wireless charging module according to a format of a wireless charging protocol; the second processing module is used for analyzing the data packet to obtain the first hardware address;
the second wireless charging module and the first wireless charging module are correspondingly arranged and adopt the same set of standard, so that the second charging module can be matched with the first charging module for use.
The second processing module is used for analyzing the first hardware address.
The second Bluetooth module is used for initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address, and the first Bluetooth module is used for responding to the Bluetooth connection request so as to realize Bluetooth connection with the mobile communication equipment.
Example nine
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for bluetooth connectivity, the method comprising:
establishing a wireless charging connection with a mobile communication device, the wireless charging connection conforming to a wireless charging protocol;
encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is sent to the mobile communication equipment through the wireless charging protocol;
receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address;
and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication equipment.
Or,
receiving a data packet according to a wireless charging connection established with a Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol;
parsing the data packet to obtain the first hardware address;
and initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in a bluetooth connection method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer electronic device (which may be a personal computer, a server, or a network electronic device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the above embodiments of a bluetooth terminal and a mobile communication device, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method of bluetooth connectivity, comprising:
establishing a wireless charging connection with a mobile communication device, the wireless charging connection conforming to a wireless charging protocol;
encapsulating the first hardware address into a data packet according to a format of a wireless charging protocol, so that the data packet is sent to the mobile communication equipment through the wireless charging protocol;
receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address;
and responding to the Bluetooth connection request to realize Bluetooth connection with the mobile communication equipment.
2. The method of claim 1, wherein encapsulating the first hardware address as a data packet in a format of a wireless charging protocol to enable the data packet to be sent to a mobile communication device via the wireless charging protocol comprises:
determining a first hardware address;
the first hardware address is used as a data message part, a preamble part, a header part and a check code part, and is packaged into a data packet together;
transmitting the data packet to the mobile communication device over a wireless communication protocol.
3. A method of bluetooth connectivity, comprising:
receiving a data packet according to a wireless charging connection established with a Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol;
parsing the data packet to obtain the first hardware address;
and initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
4. The method of claim 3, wherein a Bluetooth terminal sends a Bluetooth broadcast, the Bluetooth broadcast including a second hardware address of the Bluetooth terminal;
the initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to realize bluetooth connection with the bluetooth terminal includes:
receiving a second hardware address sent by a plurality of Bluetooth terminals through Bluetooth broadcasting;
determining a third hardware address matching the first hardware address from the second hardware address;
and initiating a Bluetooth connection request to the Bluetooth terminal corresponding to the third hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
5. The method of claim 3, wherein a Bluetooth terminal sends a Bluetooth broadcast to indicate that the Bluetooth terminal is waiting to be connected;
the initiating a bluetooth connection request to the bluetooth terminal according to the first hardware address to realize bluetooth connection with the bluetooth terminal includes:
detecting a plurality of Bluetooth terminals waiting to be connected in the range of the mobile communication equipment as terminals to be matched;
sending a Bluetooth connection request to the terminal to be matched, wherein the Bluetooth connection request carries the first hardware address;
and receiving the Bluetooth terminal responding to the Bluetooth connection request so as to realize Bluetooth connection with the Bluetooth terminal.
6. A bluetooth terminal, comprising:
a first wireless charging module for establishing a wireless charging connection with a mobile communication device, the wireless charging connection following a wireless charging protocol;
the first processing module is used for encapsulating the first hardware address into a data packet according to the format of the wireless charging protocol so as to enable the data packet to be sent to the mobile communication equipment through the wireless charging protocol;
the first Bluetooth module is used for receiving a Bluetooth connection request initiated by the mobile communication equipment according to the first hardware address; the mobile communication device is used for responding to the Bluetooth connection request so as to realize Bluetooth connection with the mobile communication device.
7. The bluetooth terminal of claim 6, wherein the first processing module comprises:
the first address determination submodule is used for determining a first hardware address;
the data packet packaging sub-module is used for packaging the first hardware address serving as a data message part, a preamble part, a header part and a check code part into a data packet;
and the data packet sending submodule is used for sending the data packet to the mobile communication equipment through a wireless communication protocol.
8. A mobile communication device, comprising:
the second wireless charging module is used for receiving a data packet according to a wireless charging connection established with the Bluetooth terminal, wherein the data packet comprises a first hardware address of the Bluetooth terminal packaged according to a format of a wireless charging protocol;
the second processing module is used for analyzing the data packet to obtain the first hardware address;
and the second Bluetooth module is used for initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address so as to realize Bluetooth connection with the Bluetooth terminal.
9. A bluetooth connected system, comprising: a mobile communication device and a bluetooth terminal;
the Bluetooth terminal comprises a first wireless charging module, a first processing module and a first Bluetooth module;
the first processing module is used for encapsulating a first hardware address into a data packet according to the format of a wireless charging protocol; the first wireless charging module is used for establishing wireless charging connection with the mobile communication equipment and sending the data packet to the mobile communication equipment through a wireless charging protocol;
the mobile communication equipment comprises a second wireless charging module, a second processing module and a second Bluetooth module;
the second wireless charging module is used for performing wireless charging connection with the first wireless charging module according to a format of a wireless charging protocol; the second processing module is used for analyzing the data packet to obtain the first hardware address;
the second Bluetooth module is used for initiating a Bluetooth connection request to the Bluetooth terminal according to the first hardware address, and the first Bluetooth module is used for responding to the Bluetooth connection request so as to realize Bluetooth connection with the mobile communication equipment.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of bluetooth connection according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911233538.6A CN110891260A (en) | 2019-12-05 | 2019-12-05 | Bluetooth connection method, equipment, terminal, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911233538.6A CN110891260A (en) | 2019-12-05 | 2019-12-05 | Bluetooth connection method, equipment, terminal, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110891260A true CN110891260A (en) | 2020-03-17 |
Family
ID=69750570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911233538.6A Pending CN110891260A (en) | 2019-12-05 | 2019-12-05 | Bluetooth connection method, equipment, terminal, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110891260A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518331A (en) * | 2020-03-27 | 2021-10-19 | 华为技术有限公司 | Communication method and device |
CN113573172A (en) * | 2021-07-28 | 2021-10-29 | 江苏紫米电子技术有限公司 | Dual-device audio playing method and device, electronic device and storage medium |
CN114531741A (en) * | 2022-02-23 | 2022-05-24 | Oppo广东移动通信有限公司 | Method, device, equipment and storage medium for connecting external equipment and terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080287062A1 (en) * | 2007-05-17 | 2008-11-20 | Advanced Medical Optics, Inc. | Exclusive pairing technique for bluetooth compliant devices |
CN104980887A (en) * | 2015-07-16 | 2015-10-14 | 北京握奇智能科技有限公司 | Bluetooth connection establishment method and intelligent terminal |
CN110350676A (en) * | 2019-05-28 | 2019-10-18 | 华为技术有限公司 | A kind of communication means and device of wireless charging |
-
2019
- 2019-12-05 CN CN201911233538.6A patent/CN110891260A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080287062A1 (en) * | 2007-05-17 | 2008-11-20 | Advanced Medical Optics, Inc. | Exclusive pairing technique for bluetooth compliant devices |
CN104980887A (en) * | 2015-07-16 | 2015-10-14 | 北京握奇智能科技有限公司 | Bluetooth connection establishment method and intelligent terminal |
CN110350676A (en) * | 2019-05-28 | 2019-10-18 | 华为技术有限公司 | A kind of communication means and device of wireless charging |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518331A (en) * | 2020-03-27 | 2021-10-19 | 华为技术有限公司 | Communication method and device |
CN113518331B (en) * | 2020-03-27 | 2024-04-12 | 华为技术有限公司 | Communication method and device |
CN113573172A (en) * | 2021-07-28 | 2021-10-29 | 江苏紫米电子技术有限公司 | Dual-device audio playing method and device, electronic device and storage medium |
CN114531741A (en) * | 2022-02-23 | 2022-05-24 | Oppo广东移动通信有限公司 | Method, device, equipment and storage medium for connecting external equipment and terminal |
WO2023160222A1 (en) * | 2022-02-23 | 2023-08-31 | Oppo广东移动通信有限公司 | Connection method and apparatus of external device and terminal, device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108200559B (en) | Method for representing Bluetooth device function through broadcast data and Bluetooth device | |
EP3614786B1 (en) | Data transmission method and apparatus | |
EP2918140B1 (en) | Proxy connection method and apparatus | |
CN104243541B (en) | Setting method of network camera with network repeater function | |
WO2020077658A1 (en) | Extended connection method and extended connection system for bluetooth devices | |
CN110891260A (en) | Bluetooth connection method, equipment, terminal, system and storage medium | |
CN102723971B (en) | Bluetooth device and Bluetooth pairing method thereof | |
CN105050083A (en) | Network configuration method and system for intelligent equipment | |
CN104218979A (en) | Sensor for acquiring sensing data in disconnected state and intelligent device and method | |
WO2020101147A1 (en) | Electronic device connected to external electronic device through wireless communication channel by using tdls session defined by ieee 802.11 standard | |
EP3096563B1 (en) | Method and system for realizing network access via wifi | |
EP3763164B1 (en) | Electronic device supporting multiple wireless communication protocols and method therefor | |
KR20210020542A (en) | Method for supporting multiple links in bluetooth network environment and electronic device thereof | |
US8270903B2 (en) | Method for displaying information in mobile communication terminal using bluetooth | |
CN109618318A (en) | A kind of matching method and TWS earphone of TWS earphone | |
KR20210020541A (en) | Electronic device for retransmitting data in bluetooth network environment and method thereof | |
CN107343325A (en) | A data transmission method, device and terminal | |
CN115708370A (en) | Unicast connection establishment exception handling method and device | |
WO2015164409A1 (en) | Data transmission | |
CN108112091A (en) | A kind of method and system that real-time Transmission audio and video are realized by WIFI | |
CN108684021B (en) | Bluetooth low-power-consumption communication method and device | |
KR20200073811A (en) | Electronic device supporting secondary node addition and method therefor | |
CN117097795B (en) | Android intelligent equipment data communication method and device | |
JP5999461B2 (en) | Method, apparatus, and system for obtaining an internet protocol address | |
CN109151790B (en) | Bluetooth device connection method and system based on network security |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200317 |