CN111132099A - Control method and device for Bluetooth master and slave devices and Bluetooth device - Google Patents

Control method and device for Bluetooth master and slave devices and Bluetooth device Download PDF

Info

Publication number
CN111132099A
CN111132099A CN201910950354.5A CN201910950354A CN111132099A CN 111132099 A CN111132099 A CN 111132099A CN 201910950354 A CN201910950354 A CN 201910950354A CN 111132099 A CN111132099 A CN 111132099A
Authority
CN
China
Prior art keywords
bluetooth
master
slave
clock
equipment
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
CN201910950354.5A
Other languages
Chinese (zh)
Other versions
CN111132099B (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.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli 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 Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN201910950354.5A priority Critical patent/CN111132099B/en
Publication of CN111132099A publication Critical patent/CN111132099A/en
Application granted granted Critical
Publication of CN111132099B publication Critical patent/CN111132099B/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
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a control method and a control device of Bluetooth master and slave equipment and Bluetooth equipment, wherein the control method comprises the following steps: pre-storing a reference Bluetooth clock value and a Bluetooth address of a slave device in a master device; initializing a master device clock to the reference Bluetooth clock value before the master device starts to search, and locking the master device clock to keep unchanged; determining a searching frequency point according to a master equipment Bluetooth address and the reference Bluetooth clock value, and sending an inquiry packet to the slave equipment on the searching frequency point; and trying to receive a response packet sent by the slave equipment on the searching frequency point, and unlocking the clock of the master equipment after receiving the response packet so as to start frequency hopping connection with the slave equipment. The invention has less connecting steps and less time consumption, and can quickly enter the connecting state.

Description

Control method and device for Bluetooth master and slave devices and Bluetooth device
Technical Field
The present invention relates to the field of bluetooth communications, and in particular, to a method and an apparatus for controlling bluetooth master and slave devices, and a bluetooth device.
Background
Before data transmission between classical bluetooth devices, a reliable wireless connection link needs to be established between the devices. According to the classic bluetooth protocol specification, bluetooth devices are divided into bluetooth master devices (hereinafter referred to as master devices) and bluetooth slave devices (hereinafter referred to as slave devices), and to establish a connection link, the following steps are required for the master devices and the slave devices connected for the first time: a query (inquiry) and query response (response) stage, a search stage and a connection confirmation stage; for the master and slave to reconnect, the following stages of steps need to be followed: a search phase and a connection confirmation phase.
Query and query response phases (not shown in the figures): since the master device does not know which slave devices exist around, the master device first hops to send the query packet on all frequency points, and the slave devices monitor the query table on all frequency points to obtain a potential master device. And after the slave device listens to the inquiry packet, the slave device Bluetooth address of the slave device is sent to the master device. This process usually takes a long time.
A searching stage: as shown in fig. 1, the master and slave enter a search phase; the master device and the target slave device (for example, obtained through inquiry) are paired (page), firstly, the master device determines a frequency hopping sequence according to the slave device Bluetooth address of the slave device, and then sends an ID packet (packet containing the slave device Bluetooth address) on different frequency points on the frequency hopping sequence; the slave device performs pairing scanning (page scan), determines a frequency hopping sequence according to the Bluetooth address of the slave device, and then opens a receiving window on different frequency points on the frequency hopping sequence to perform scanning (scan). The frequency hopping sequence is determined by a bluetooth address which determines the sequence of the frequency points in the frequency hopping sequence and a clock value in the bluetooth clock which determines the timing of the frequency hopping sequence (at which time point the frequency point of the frequency hopping sequence occurs). Therefore, in the searching stage, because the master device and the slave device determine the frequency hopping sequence according to the Bluetooth address of the slave device, the frequency points of the frequency hopping sequence have the same sequence, but since the bluetooth clock value of the master device and the bluetooth clock value of the slave device are usually not the same before the connection, therefore, the timing sequences of the two hopping sequences are different, which makes it difficult for the master device and the slave device to be at the same frequency point at the same time point, and therefore, it may take a long time for the slave device and the master device to be in a frequency point at the same time (for example, when the master device CLKN is N and the slave device CLKN is k +1 in fig. 1, the master device and the slave device are in the same frequency points f (N) and f (k +1), and the time period for the master device to send the ID packet is within the time window of the Scanning (SCAN) of the slave device, and the slave device can receive the ID packet; on the next frequency point f (n +1) of the frequency hopping sequence, the slave equipment returns an ID packet to the master equipment; after receiving the ID packet, the master device sends an FHS packet (information such as a master Bluetooth clock, a master device address and the like) to the slave device at the next frequency point f (n +2) of the frequency point f (n + 1); after receiving the FHS packet, the slave device sends an ID packet to the master device for confirmation at the frequency point f (n +3) next to the frequency point f (n + 2).
A connection confirmation stage: as shown in fig. 1, the master device and the slave device enter a connection confirmation phase; the method comprises the steps that a master device determines the frequency point of a frequency hopping sequence according to the Bluetooth address of the master device and the clock value in the clock of the master device, meanwhile, a slave device calculates the time point of sending an FHS packet by the master device according to the time point of the received FHS packet, then the frequency hopping sequence of the slave device is calibrated to be consistent with the time sequence of the frequency hopping sequence of the master device, and then a POLL packet inquiry is sent to the air to wait for receiving the response of the slave device; the slave equipment determines the frequency point of a frequency hopping sequence according to the Bluetooth address of the main equipment of the FHS packet information, the Bluetooth address of the main equipment and the clock value in the Bluetooth clock of the main equipment, then receives the POLL packet sent by the main equipment at the frequency point, and sends a response packet NULL to the main equipment to inform the main equipment of receiving the inquiry packet. So far, the master device and the slave device confirm that the connection is completed;
a connection stage: the master device and the slave device enter a frequency hopping connection state, and data transmission can be carried out through the connection link.
In the searching stage, the frequency hopping sequence selected by the adopted frequency hopping method is long, so that the probability of frequency point matching between the master equipment and the slave equipment is low; moreover, the frequency hopping time interval is large (the frequency point is updated once by 625us on average) when the pairing (page) is carried out; meanwhile, since connection parameters (frequency hopping sequences based on the bluetooth address of the slave device and the bluetooth clock of the slave device) adopted by the master device and the slave device in the search stage are different from final connection state parameters (frequency hopping sequences based on the bluetooth address of the master device and the bluetooth clock of the master device), the number of state switching steps increases. The above defects will increase the time consumption for establishing connection, and cannot meet the requirement of fast connection in such application scenarios.
Disclosure of Invention
The invention provides a control method and a control device of Bluetooth master equipment and Bluetooth slave equipment, and Bluetooth equipment, which improve a method used in a search stage in a classic Bluetooth standard protocol specification so as to realize faster search connection, reduce connection steps and reduce connection time consumption.
The invention provides a control method of a Bluetooth master device, which is used for connecting the master device with a slave device and comprises the following steps: pre-storing a reference Bluetooth clock value and a Bluetooth address of a slave device in a master device; initializing a master device clock to the reference Bluetooth clock value before the master device starts to search, and locking the master device clock to keep unchanged; determining a searching frequency point according to a master equipment Bluetooth address and the reference Bluetooth clock value, and sending an inquiry packet to the slave equipment on the searching frequency point; and trying to receive a response packet sent by the slave equipment on the searching frequency point, and unlocking the clock of the master equipment after receiving the response packet so as to start frequency hopping connection with the slave equipment.
Preferably, the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
The invention provides a control method of Bluetooth slave equipment, which is used for connecting the slave equipment with master equipment and comprises the following steps: pre-storing a reference Bluetooth clock value and a master Bluetooth address in the slave equipment; before the slave device searches the master device, initializing a slave device clock to the reference Bluetooth clock value, and locking the slave device clock to keep unchanged; determining a searching frequency point according to a Bluetooth address of the main equipment and the reference Bluetooth clock value, and trying to receive an inquiry packet sent by the main equipment on the searching frequency point; and after receiving the inquiry packet, sending a response packet to the master device on the searching frequency point, and unlocking the clock of the slave device to start frequency hopping connection with the master device.
Preferably, the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
The invention provides a control device of a Bluetooth master device, which is used for controlling the connection between the master device and a slave device and comprises: the storage unit is used for pre-storing a reference Bluetooth clock value and a Bluetooth address of the slave device in the master device; the locking unit is used for initializing a master device clock to the reference Bluetooth clock value before the master device starts searching, and locking the master device clock to keep unchanged; a sending and receiving unit, configured to determine a search frequency point according to the master device bluetooth address and the reference bluetooth clock value, send an inquiry packet to the slave device on the search frequency point, and attempt to receive a response packet sent by the slave device on the search frequency point; and the frequency hopping connection unit is used for unlocking the clock of the master device after receiving the response packet so as to start frequency hopping connection with the slave device.
Preferably, the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
The invention provides a control device of Bluetooth slave equipment, which is used for controlling the connection between the slave equipment and a master equipment and comprises: the storage unit is used for pre-storing a reference Bluetooth clock value and a master device Bluetooth address in the slave device; the locking unit is used for initializing a slave device clock to the reference Bluetooth clock value before the slave device searches the master device, and locking the slave device clock to keep unchanged; the transmitting unit is used for determining a searching frequency point according to the master equipment Bluetooth address and the reference Bluetooth clock value and trying to receive an inquiry packet transmitted by the master equipment on the searching frequency point; and the frequency hopping connection unit is used for sending a response packet to the master equipment on the searching frequency point after receiving the inquiry packet, and unlocking the clock of the slave equipment to start frequency hopping connection with the master equipment.
Preferably, the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
The invention provides a connection control method of a Bluetooth master device and a Bluetooth slave device, which comprises the following steps: pre-storing a reference Bluetooth clock value and a slave equipment Bluetooth address in the master equipment, and pre-storing the reference Bluetooth clock value and the master equipment Bluetooth address in the slave equipment; initializing a master device clock to the reference Bluetooth clock value before the master device starts to search, and locking the master device clock to keep unchanged; determining a searching frequency point according to a master equipment Bluetooth address and the reference Bluetooth clock value, and sending an inquiry packet to the slave equipment on the searching frequency point; before the slave device searches the master device, initializing a slave device clock to the reference Bluetooth clock value, and locking the slave device clock to keep unchanged; determining a searching frequency point according to a Bluetooth address of the main equipment and the reference Bluetooth clock value, and trying to receive an inquiry packet sent by the main equipment on the searching frequency point; after receiving the inquiry packet, sending a response packet to the main equipment on the searching frequency point; and trying to receive a response packet sent by the slave equipment on the searching frequency point, and unlocking the clock of the master equipment after receiving the response packet so as to start frequency hopping connection between the master equipment and the slave equipment.
The invention provides a bluetooth device comprising a control apparatus as claimed in claims 5 to 8, further comprising a storage medium storing a computer program for execution by a processor into any of the methods.
Has the advantages that:
the master device Bluetooth address and the Bluetooth reference clock are prestored in the slave device, the slave device Bluetooth address and the Bluetooth reference clock are prestored in the master device, and the master device clock and the slave device clock are locked, so that the master device and the slave device can search on the same searching frequency point at the beginning.
Drawings
Fig. 1 is a flow chart illustrating a typical bluetooth connection method in the prior art.
Fig. 2 is a flowchart illustrating a connection control method between a bluetooth master device and a bluetooth slave device according to an embodiment of the present invention.
Fig. 3 is a flow chart of an embodiment of a connection control method of a bluetooth master device and a bluetooth slave device according to the present invention.
Detailed Description
In order to describe the technical solutions of the present invention in more detail to facilitate further understanding of the present invention, the following describes specific embodiments of the present invention with reference to the accompanying drawings. It should be understood, however, that all of the illustrative embodiments and descriptions thereof are intended to illustrate the invention and are not to be construed as the only limitations of the invention.
A predefined bluetooth device group comprises a bluetooth master device (hereinafter referred to as master device) and a bluetooth slave device (hereinafter referred to as slave device), i.e. the master device and the slave device belong to the bluetooth device group, and the connection between the master device and the slave device is known and fixed. In one embodiment, the master device and the slave device may be a master headset and a slave headset, respectively, of a pair of bluetooth headsets.
As shown in fig. 3, an embodiment of a connection control method for a master device and a slave device includes the following steps.
S11, presetting configuration information in the main device and the auxiliary device
The method comprises the steps that first configuration information used for being connected with slave equipment is stored in the master equipment in advance, and second configuration information used for being connected with the master equipment is stored in the slave equipment in advance; the master device and the slave device belong to a Bluetooth device group, and the first configuration information comprises a slave device Bluetooth address and a reference Bluetooth clock value of the slave device; the second configuration information includes a master bluetooth address and a reference bluetooth clock value of the master.
S12, initializing the clock of the master device to the reference Bluetooth clock value, fixing the clock of the master device, and sending the inquiry packet
Before the master device starts to search the slave devices, the master device initializes a Bluetooth clock of the master device (hereinafter referred to as a master clock device) to a reference Bluetooth clock value and locks a master device clock to keep unchanged; and the master equipment determines a searching frequency point according to the Bluetooth address of the master equipment and the locked clock of the master equipment, and sends an inquiry packet to the slave equipment on the searching frequency point.
In the classic bluetooth protocol, the wireless frequency point where the bluetooth device is currently located depends on the bluetooth address and the bluetooth clock value in the bluetooth clock, and for a given bluetooth device, because the bluetooth address is fixed, the continuous change of the bluetooth clock value in the bluetooth clock will result in the continuous change of the wireless frequency point where the bluetooth device is located, that is, the so-called frequency hopping. In the classic bluetooth protocol, the bluetooth clock value in the bluetooth clock is increased by 1 every 625 microseconds, so that the bluetooth clock value is constantly changing. In the hardware architecture in classical bluetooth, the bluetooth clock cannot be stopped, or locked. In the scheme, in order to lock the bluetooth clock, the bluetooth clock needs to be modified to some extent, for example, an enable end is added to the bluetooth clock, and when an enable signal is output to the control end, the bluetooth clock starts to count (i.e., time); when the control end outputs a locking signal, the Bluetooth clock is locked, and the counting is stopped.
In the scheme, before the master device starts to search the slave device, a master device clock of the master device is initialized to a reference Bluetooth clock value, and then the master device clock is locked, so that the clock value in the master device clock is kept unchanged and is always kept as the reference Bluetooth clock value, therefore, a wireless frequency point obtained by the Bluetooth master device according to the unchanged Bluetooth clock value (namely the reference Bluetooth clock value) in the locked master device clock is fixed, namely, the wireless frequency point where the master device is located is fixed, the master device sends an inquiry packet to the slave device at the wireless frequency point to search the slave device, and therefore, the wireless frequency point can be called a search frequency point. The inquiry packet contains the bluetooth address of the slave device and the bluetooth address of the master device, and the slave device can determine whether the device sending the inquiry packet is the master device of the bluetooth device group according to the two addresses of the inquiry packet and second configuration information stored in advance. The inquiry packet may be an inquiry packet in the classic bluetooth protocol.
As shown in fig. 2, the search frequency point of the master device is fixed to f (n), and the inquiry packet POLL is continuously transmitted at the search frequency point f (n).
S13, initializing the slave device clock to the reference Bluetooth clock value, fixing the slave device clock, and trying to receive the inquiry packet
Before the slave device searches the master device, the slave device initializes a slave device clock to a reference Bluetooth clock value and locks the slave device clock to keep unchanged; the slave device determines a searching frequency point according to the Bluetooth address of the master device and the locked clock of the slave device, and tries to receive an inquiry packet sent by the master device on the searching frequency point.
In order to search for the master device in time and receive the inquiry packet sent by the master device, the slave device needs to be located at the wireless frequency point where the master device is located, that is, the search frequency point. Before the master device is searched, the slave device clock of the slave device is initialized to the reference Bluetooth clock value, the slave device can obtain the searching frequency point according to the reference Bluetooth clock value in the slave device clock, and then an inquiry packet sent by the master device is tried to be received at the searching frequency point: if the time period for the master device to send the inquiry packet is just within the time window (i.e., the scanning window) the slave device attempts to receive, the slave device can successfully receive the inquiry packet; if the time period for the master device to send the inquiry packet is outside the time window for the slave device to attempt to receive, the slave device cannot receive the inquiry packet, so the slave device needs to attempt to receive the inquiry packet again, or the master device needs to send the inquiry packet again, so that the time period for sending the inquiry packet is just within the time window for the slave device to attempt to receive. Since the slave clock is locked, the value in the slave clock remains at the reference bluetooth clock value at all times, so the slave is at the search frequency point at all times at this stage.
As shown in fig. 2, the search frequency point of the master device is fixed at f (n), and reception of the inquiry packet POLL is continuously attempted at the search frequency point f (n).
And S14, after receiving the inquiry packet sent by the Bluetooth master device, the slave device sends a response packet to the master device on the searching frequency point and unlocks the slave device clock.
After the slave device judges that the inquiry packet is sent by the master device, a response packet is sent to the master device on the searching frequency point to inform the master device that the slave device receives the inquiry packet. The response packet contains the bluetooth address of the slave device and the bluetooth address of the master device, and the master device can determine whether the device sending the response packet is the slave device of the bluetooth device group according to the two addresses of the response packet and first configuration information stored in advance by the master device. The response packet may be a response packet in the classic bluetooth protocol.
After sending the response packet, the slave unlocks the slave clock, which starts running on the basis of the reference bluetooth clock value. The clock value in the running slave device clock is changed continuously, so that the frequency point of the slave device is changed continuously, and the slave device starts to enter a frequency hopping state.
As shown in fig. 2, after the slave device receives the inquiry packet POLL at the searching frequency point f (n), the slave device sends a response packet NULL at the searching frequency point f (n), and unlocks the slave device clock, and the next frequency point of the slave device clock enters f (n + 1).
And S15, the master device tries to receive the response packet sent by the slave device on the searching frequency point, and when receiving the response packet sent by the slave device, the master device unlocks the clock of the master device.
In order to judge whether the slave equipment receives the inquiry packet or not, the master equipment tries to receive the response packet sent by the slave equipment on the searching frequency point, and if the time period for sending the response packet by the slave equipment just falls into the time window for the master equipment to try to receive, the master equipment can successfully receive the response packet; if the time period for the slave device to send the response packet falls outside the time window for the master device to attempt to receive, the master device may not be able to receive the response packet.
The master device may periodically transmit inquiry packets and attempt to receive response packets at the search frequency point, and the starting time point of transmission of the inquiry packet and the starting time point of attempt to receive the response packet are set and fixed in the position of the time period, the interval between the two time points being fixed, so that, when the inquiry packet is received from the device, depending on the point in time of the timer of the own slave device at the time of receipt of the inquiry packet (in the classical bluetooth protocol, this timer is different from the bluetooth clock, the role of which includes the time for synchronizing the transmission and reception between the master device and the slave device) and the above-mentioned known fixed interval, i.e. the difference between the starting point in time when the master device sends an inquiry packet and the starting point in time when the slave device attempts to receive an inquiry packet can be calculated, so that the slave device transmits a response packet at a point of time when the master device attempts to receive the inquiry packet to ensure that the master device can receive the response packet. The slave device may adjust its own timer according to the calculated difference, and synchronize with the timer of the master device, so that in the frequency hopping connection state of the master device and the slave device, the master device can receive the data when the master device transmits the data, and the slave device can receive the data when the master device transmits the data.
After the master device determines that the response packet is sent by the slave device, the master device clock starts to run on the basis of the reference bluetooth clock value, and as shown in fig. 2, the next frequency point of the master device clock enters f (n × + 1). The clock value in the running main equipment clock is continuously changed, so that the frequency point of the main equipment is continuously changed, and the main equipment starts to enter a frequency hopping state.
S16, the master device starts a frequency hopping connection with the slave device.
Because the Bluetooth addresses and Bluetooth clocks of the wireless frequency points generated by the master device and the slave device are the same, the frequency hopping sequence (namely the sequence of the wireless frequency points) of the master device is the same as that of the slave device; as can be seen from the foregoing step S5, after the slave device receives the inquiry packet sent by the master device, the slave device can obtain the time difference between the slave device and the master device timer through calculation, and the slave device can maintain synchronization with the master device by correcting its own timer, so that the frequency-hopping connection communication between the master device and the slave device can be ensured.
And S17, after the slave device is connected with the master device, the slave device initializes the clock of the slave device to the Bluetooth clock value and locks the clock of the slave device to keep unchanged so as to try to receive the inquiry packet sent by the master device next time on the searching frequency point.
In the embodiment, the master device Bluetooth address and the Bluetooth reference clock are prestored in the slave device, the slave device Bluetooth address and the Bluetooth reference clock are prestored in the master device, and the master device clock and the slave device clock are locked, so that the master device and the slave device can search on the same searching frequency point at the beginning.
The invention also provides a control device of the Bluetooth master device, which is used for controlling the master device to be connected with the slave device and comprises the following components:
the storage unit is used for pre-storing a reference Bluetooth clock value and a Bluetooth address of the slave device in the master device;
the locking unit is used for initializing a master device clock to the reference Bluetooth clock value before the master device starts searching, and locking the master device clock to keep unchanged;
a sending and receiving unit, configured to determine a search frequency point according to the master device bluetooth address and the reference bluetooth clock value, send an inquiry packet to the slave device on the search frequency point, and attempt to receive a response packet sent by the slave device on the search frequency point;
and the frequency hopping connection unit is used for unlocking the clock of the master device after receiving the response packet so as to start frequency hopping connection with the slave device.
Other steps executed by the control device of the bluetooth master device refer to the execution steps of the master device in the previous embodiment, which are not described herein again.
The invention also provides a control device of the Bluetooth slave device, which is used for controlling the slave device to be connected with the master device and comprises:
the storage unit is used for pre-storing a reference Bluetooth clock value and a master device Bluetooth address in the slave device;
the locking unit is used for initializing a slave device clock to the reference Bluetooth clock value before the slave device searches the master device, and locking the slave device clock to keep unchanged;
the transmitting unit is used for determining a searching frequency point according to the master equipment Bluetooth address and the reference Bluetooth clock value and trying to receive an inquiry packet transmitted by the master equipment on the searching frequency point;
and the frequency hopping connection unit is used for sending a response packet to the master equipment on the searching frequency point after receiving the inquiry packet, and unlocking the clock of the slave equipment to start frequency hopping connection with the master equipment.
Other steps executed by the control device of the bluetooth slave device refer to the execution steps of the slave device in the previous embodiment, which are not described herein again.
The present invention further provides a bluetooth device, including a storage medium, where the storage medium stores a computer program, where the computer program is executed by a processor, where the method for connecting a bluetooth master device and a bluetooth slave device is described, or the method for connecting a bluetooth master device and a bluetooth slave device is described, for specific reference, the execution steps of the master device and the slave device in the foregoing embodiment are not described herein again.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious and equivalent modifications and substitutions for details described herein may be made by those skilled in the art without departing from the basic principles of the invention.

Claims (10)

1. A control method of a Bluetooth master device is used for connecting the master device with a slave device, and is characterized by comprising the following steps:
pre-storing a reference Bluetooth clock value and a Bluetooth address of a slave device in a master device;
initializing a master device clock to the reference Bluetooth clock value before the master device starts to search, and locking the master device clock to keep unchanged;
determining a searching frequency point according to a master equipment Bluetooth address and the reference Bluetooth clock value, and sending an inquiry packet to the slave equipment on the searching frequency point;
and trying to receive a response packet sent by the slave equipment on the searching frequency point, and unlocking the clock of the master equipment after receiving the response packet so as to start frequency hopping connection with the slave equipment.
2. The control method according to claim 1,
the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
3. A control method of a bluetooth slave device for connecting the slave device with a master device, comprising the steps of:
pre-storing a reference Bluetooth clock value and a master Bluetooth address in the slave equipment;
before the slave device searches the master device, initializing a slave device clock to the reference Bluetooth clock value, and locking the slave device clock to keep unchanged;
determining a searching frequency point according to a Bluetooth address of the main equipment and the reference Bluetooth clock value, and trying to receive an inquiry packet sent by the main equipment on the searching frequency point;
and after receiving the inquiry packet, sending a response packet to the master device on the searching frequency point, and unlocking the clock of the slave device to start frequency hopping connection with the master device.
4. The control method according to claim 3,
the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
5. A control device of a Bluetooth master device, which is used for controlling the master device to be connected with a slave device, is characterized by comprising:
the storage unit is used for pre-storing a reference Bluetooth clock value and a Bluetooth address of the slave device in the master device;
the locking unit is used for initializing a master device clock to the reference Bluetooth clock value before the master device starts searching, and locking the master device clock to keep unchanged;
a sending and receiving unit, configured to determine a search frequency point according to the master device bluetooth address and the reference bluetooth clock value, send an inquiry packet to the slave device on the search frequency point, and attempt to receive a response packet sent by the slave device on the search frequency point;
and the frequency hopping connection unit is used for unlocking the clock of the master device after receiving the response packet so as to start frequency hopping connection with the slave device.
6. The control apparatus of claim 5,
the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
7. A control device of a Bluetooth slave device, which is used for controlling the slave device to be connected with a master device, is characterized by comprising:
the storage unit is used for pre-storing a reference Bluetooth clock value and a master device Bluetooth address in the slave device;
the locking unit is used for initializing a slave device clock to the reference Bluetooth clock value before the slave device searches the master device, and locking the slave device clock to keep unchanged;
the transmitting unit is used for determining a searching frequency point according to the master equipment Bluetooth address and the reference Bluetooth clock value and trying to receive an inquiry packet transmitted by the master equipment on the searching frequency point;
and the frequency hopping connection unit is used for sending a response packet to the master equipment on the searching frequency point after receiving the inquiry packet, and unlocking the clock of the slave equipment to start frequency hopping connection with the master equipment.
8. The control device of claim 7,
the master device is a master headset of a pair of bluetooth headsets and the slave device is a slave headset of the pair of bluetooth headsets.
9. A connection control method of a Bluetooth master device and a Bluetooth slave device is characterized by comprising the following steps:
pre-storing a reference Bluetooth clock value and a slave equipment Bluetooth address in the master equipment, and pre-storing the reference Bluetooth clock value and the master equipment Bluetooth address in the slave equipment;
initializing a master device clock to the reference Bluetooth clock value before the master device starts to search, and locking the master device clock to keep unchanged;
determining a searching frequency point according to a master equipment Bluetooth address and the reference Bluetooth clock value, and sending an inquiry packet to the slave equipment on the searching frequency point;
before the slave device searches the master device, initializing a slave device clock to the reference Bluetooth clock value, and locking the slave device clock to keep unchanged;
determining a searching frequency point according to a Bluetooth address of the main equipment and the reference Bluetooth clock value, and trying to receive an inquiry packet sent by the main equipment on the searching frequency point;
after receiving the inquiry packet, sending a response packet to the main equipment on the searching frequency point;
and trying to receive a response packet sent by the slave equipment on the searching frequency point, and unlocking the clock of the master equipment after receiving the response packet so as to start frequency hopping connection between the master equipment and the slave equipment.
10. A bluetooth device comprising the control apparatus of claims 5-8, further comprising a storage medium having stored thereon a computer program for execution by a processor as the method of claims 1-4.
CN201910950354.5A 2019-10-08 2019-10-08 Control method and device for Bluetooth master and slave devices and Bluetooth device Active CN111132099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950354.5A CN111132099B (en) 2019-10-08 2019-10-08 Control method and device for Bluetooth master and slave devices and Bluetooth device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950354.5A CN111132099B (en) 2019-10-08 2019-10-08 Control method and device for Bluetooth master and slave devices and Bluetooth device

Publications (2)

Publication Number Publication Date
CN111132099A true CN111132099A (en) 2020-05-08
CN111132099B CN111132099B (en) 2023-03-24

Family

ID=70496064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950354.5A Active CN111132099B (en) 2019-10-08 2019-10-08 Control method and device for Bluetooth master and slave devices and Bluetooth device

Country Status (1)

Country Link
CN (1) CN111132099B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970669A (en) * 2020-08-17 2020-11-20 立讯电子科技(昆山)有限公司 Bluetooth connection method and device and Bluetooth equipment
CN112020047A (en) * 2020-09-02 2020-12-01 上海富芮坤微电子有限公司 Bluetooth communication method, medium, bluetooth device and communication system
CN113055868A (en) * 2021-03-12 2021-06-29 上海物骐微电子有限公司 Bluetooth rapid networking method and system and Bluetooth headset

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1389050A (en) * 2000-06-26 2003-01-01 皇家菲利浦电子有限公司 Communication system
CN1631013A (en) * 2002-02-12 2005-06-22 诺基亚公司 Short-range RF access point design enabling services to master and slave mobile devices
CN101646245A (en) * 2008-06-16 2010-02-10 美国博通公司 Method and system for bluetooth and wimax coexistence
CN105207733A (en) * 2015-09-09 2015-12-30 深圳市艾迪思特信息技术有限公司 Wireless access and transmission method of integrated voice and data
CN107567007A (en) * 2016-07-01 2018-01-09 英特尔Ip公司 Short distance radio communication equipment and the method for controlling the equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1389050A (en) * 2000-06-26 2003-01-01 皇家菲利浦电子有限公司 Communication system
CN1631013A (en) * 2002-02-12 2005-06-22 诺基亚公司 Short-range RF access point design enabling services to master and slave mobile devices
CN101646245A (en) * 2008-06-16 2010-02-10 美国博通公司 Method and system for bluetooth and wimax coexistence
CN105207733A (en) * 2015-09-09 2015-12-30 深圳市艾迪思特信息技术有限公司 Wireless access and transmission method of integrated voice and data
CN107567007A (en) * 2016-07-01 2018-01-09 英特尔Ip公司 Short distance radio communication equipment and the method for controlling the equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
盛红梅等: "蓝牙技术主要原理综述", 《计算机时代》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970669A (en) * 2020-08-17 2020-11-20 立讯电子科技(昆山)有限公司 Bluetooth connection method and device and Bluetooth equipment
CN111970669B (en) * 2020-08-17 2023-11-24 立讯电子科技(昆山)有限公司 Bluetooth connection method and device and Bluetooth equipment
CN112020047A (en) * 2020-09-02 2020-12-01 上海富芮坤微电子有限公司 Bluetooth communication method, medium, bluetooth device and communication system
CN113055868A (en) * 2021-03-12 2021-06-29 上海物骐微电子有限公司 Bluetooth rapid networking method and system and Bluetooth headset
WO2022188360A1 (en) * 2021-03-12 2022-09-15 上海物骐微电子有限公司 Bluetooth fast networking method and system, and bluetooth earphones

Also Published As

Publication number Publication date
CN111132099B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN111132099B (en) Control method and device for Bluetooth master and slave devices and Bluetooth device
EP2429105B1 (en) Node in a wireless system with time and clock frequency synchronizing and corresponding method
US7602754B2 (en) Short-range RF access point design enabling services to master and slave mobile devices
CN105075302A (en) Systems and methods for synchronization within a neighborhood aware network
JP2008263603A (en) Method and device for transmitting signals in wireless communication system, and method and device for receiving signal in wireless communication system
KR20040002416A (en) Radio communication arrangements
JP5926371B2 (en) Base station synchronization
CN111107527B (en) Bluetooth master device, control method and device of slave device and Bluetooth device
CN109314975B (en) Method for operating a communication node in a wireless communication network, associated communication node, communication system and storage system
KR100862954B1 (en) Rescue beacon
US7697895B2 (en) Bluetooth smart offset compensation
US7120390B2 (en) BLUETOOTH smart offset compensation
WO2003052999A1 (en) Synchronization
CN111328134B (en) Synchronization method and device, network element and computer storage medium
JP2005322982A (en) Frequency synchronized network, time synchronized network, frequency synchronizing method, time synchronizing method, and communication station
EP4097562A1 (en) Receiver for high precision synchronization in a shared medium
KR20110053696A (en) Apparatus and method for determinating ping interval of activesync service in wireless communication terminal
CN115529101A (en) Full-network time synchronization method based on SFD interruption
JP2020005162A (en) Distributed synchronization method and distributed system
KR101738961B1 (en) Method for building an ad-hoc network
US9622154B2 (en) Radio communication terminal, mobile ad hoc network, and network participation method
CN115714611A (en) Rapid access method for ultra-long-distance wireless ad hoc network node
CN115665888A (en) Method for establishing Bluetooth connection, storage medium, chip, earphone and equipment system
CN117412280A (en) Distributed neighbor discovery method of directional wireless self-organizing network
JP2017192067A (en) Radio communication program and radio device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519075 No. 333, Kexing Road, Xiangzhou District, Zhuhai City, Guangdong Province

Applicant after: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

Address before: Floor 1-107, building 904, ShiJiHua Road, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant