CN117676526A - Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium - Google Patents

Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium Download PDF

Info

Publication number
CN117676526A
CN117676526A CN202311363150.4A CN202311363150A CN117676526A CN 117676526 A CN117676526 A CN 117676526A CN 202311363150 A CN202311363150 A CN 202311363150A CN 117676526 A CN117676526 A CN 117676526A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
classical
link
clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311363150.4A
Other languages
Chinese (zh)
Inventor
段志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KT MICRO Inc
Original Assignee
KT MICRO Inc
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 KT MICRO Inc filed Critical KT MICRO Inc
Priority to CN202311363150.4A priority Critical patent/CN117676526A/en
Publication of CN117676526A publication Critical patent/CN117676526A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode 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 application relates to the field of Bluetooth, and particularly discloses a classical Bluetooth link construction method, bluetooth equipment, electronic equipment and a storage medium. The classical Bluetooth link construction method comprises the following steps: receiving a target data packet sent by a first Bluetooth device through a BLE link, wherein the target data packet comprises a first receiving and transmitting window opening time, first clock information of the first Bluetooth device, a classical Bluetooth address of the first Bluetooth device and a logic address of classical Bluetooth allocated to a second Bluetooth device; determining the opening time and the frequency hopping frequency point of the second receiving and transmitting window according to the target data packet; starting a receiving and transmitting window when the clock reaches the starting time of the second receiving and transmitting window; and establishing a classical Bluetooth link with the first Bluetooth device through the receiving and transmitting window according to the frequency hopping frequency point. Compared with the prior art, the classical Bluetooth link construction method, the Bluetooth device, the electronic device and the storage medium provided by the embodiment of the application have the advantage of being capable of reducing energy consumption and delay in the establishment process of the classical Bluetooth link.

Description

Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium
Technical Field
The application relates to the field of bluetooth, in particular to a classical bluetooth link construction method, a bluetooth device, an electronic device and a storage medium.
Background
In the field of wireless communication, when a bluetooth device establishes a classical bluetooth link (i.e. a bluetooth communication link satisfying a classical bluetooth protocol), page (paging) and Page Scan (Page Scan) procedures are required, i.e. a Page end may generate a frequency modulation sequence based on a bluetooth address device of the Page Scan end, and the Page end may Page on the frequency modulation sequence to establish a bluetooth connection with the Page Scan end. These processes consume a significant amount of time and power, resulting in longer delays and higher energy consumption, reducing the user experience.
Disclosure of Invention
The invention aims to provide a classical Bluetooth link construction method, bluetooth equipment, electronic equipment and a storage medium, which can reduce energy consumption and delay in the establishment process of a classical Bluetooth link.
In a first aspect, the present application provides a classical bluetooth link construction method applied to a second bluetooth device that has established a BLE link with a first bluetooth device, where the first bluetooth device is a master device of a classical bluetooth link, and the second bluetooth device is a slave device of a classical bluetooth link, and the classical bluetooth link construction method includes:
receiving a target data packet sent by the first Bluetooth device through the BLE link, wherein the target data packet comprises a first receiving and sending window opening time, first clock information of the first Bluetooth device, a classical Bluetooth address of the first Bluetooth device and a logic address of classical Bluetooth distributed to a second Bluetooth device;
determining clock difference between the first Bluetooth device and the second Bluetooth device according to the first clock information, and determining second transceiver window opening time and a frequency hopping frequency point according to the clock difference, the first transceiver window opening time, the classical Bluetooth address and the logic address;
starting a receiving and transmitting window when the self clock reaches the starting time of the second receiving and transmitting window;
and establishing a classical Bluetooth link with the first Bluetooth device through the receiving and transmitting window according to the frequency hopping frequency point.
Compared with the prior art, in the classical bluetooth link construction method provided by the embodiment of the application, under the condition that the first bluetooth device and the second bluetooth device have established a BLE link, directly receiving a target data packet sent by the first bluetooth device through the BLE link, according to first clock information contained in the target data packet and combined with local clock information in the second bluetooth device, determining a clock difference between the first bluetooth device and the second bluetooth device, according to the clock difference and a first transceiver window opening time based on a clock of the first bluetooth device, determining a second transceiver window opening time based on a clock of the second bluetooth device, when the clock of the second bluetooth device reaches the second transceiver window opening time, opening a transceiver window by the second bluetooth device, and exchanging classical bluetooth link data packets with the first bluetooth device through the transceiver window according to the frequency hopping point, thereby establishing a classical bluetooth link, and simultaneously opening the classical transceiver window by the first bluetooth device and the second bluetooth device at the same time, thereby reducing delay of a bluetooth link construction process; in addition, the Page and Page Scan processes in the traditional technology are omitted, and the energy consumption can be effectively reduced.
In an optional embodiment, the first bluetooth device is a BLE link master device, the second bluetooth device is a BLE link slave device, and determining a clock difference between the first bluetooth device and the second bluetooth device according to the first clock information includes:
acquiring second clock information of the second Bluetooth device when the target data packet is received;
and determining the clock difference according to the difference value of the second Bluetooth information and the first Bluetooth information.
In an alternative embodiment, the second bluetooth device includes a counter, the target data packet includes a synchronization word, and determining the clock difference according to a difference between the second bluetooth information and the first bluetooth information includes:
acquiring the count value of the counter when the synchronous word is received;
determining a clock phase difference of the second Bluetooth device and the first Bluetooth device according to the count value;
and taking the sum of the clock phase difference and the difference value of the second Bluetooth information and the first Bluetooth information as the clock difference.
The clock phase difference of the second Bluetooth device and the first Bluetooth device is determined by acquiring the count value of the counter.
In an optional embodiment, the first bluetooth device is a BLE link slave device, the second bluetooth device is a BLE link master device, and determining a clock difference between the first bluetooth device and the second bluetooth device according to the first clock information includes:
the clock difference included in the first clock information is acquired.
In a second aspect, the present application provides a classical bluetooth link construction method, which is applied to a first bluetooth device that has established a BLE link with a second bluetooth device, where the first bluetooth device is a master device of the classical bluetooth link, and the second bluetooth device is a slave device of the classical bluetooth link, and the classical bluetooth link construction method includes:
transmitting a target data packet to the second bluetooth device via the BLE link, wherein the target data packet comprises a first transceiver window opening time, first clock information when the first bluetooth device transmits the target data packet, a classical bluetooth address of the first bluetooth device and a logical address allocated to the second bluetooth device;
starting a receiving and transmitting window when the self clock reaches the starting moment of the first receiving and transmitting window;
a classical bluetooth link is established with the second bluetooth device via the transceiving window.
Compared with the prior art, in the classical Bluetooth link construction method provided by the embodiment of the application, under the condition that the BLE link is established between the first Bluetooth device and the second Bluetooth device, the first Bluetooth device directly transmits the target data packet to the second Bluetooth device through the BLE link, the second Bluetooth device can determine the opening time of the receiving and transmitting window according to the first clock information and the opening time of the first receiving and transmitting window contained in the target data packet and combines the local clock information in the second Bluetooth device, the receiving and transmitting window is opened when the self clock reaches the opening time of the first receiving and transmitting window, and the receiving and transmitting window can be exchanged with the second Bluetooth device through the receiving and transmitting window, so that the classical Bluetooth link is established, and the receiving and transmitting window is opened simultaneously by the first Bluetooth device and the second Bluetooth device at the same time, so that the delay of the classical Bluetooth link construction process can be reduced; in addition, the Page and Page Scan processes in the traditional technology are omitted, and the energy consumption can be effectively reduced.
In an optional embodiment, the first bluetooth device is a BLE link slave device, the second bluetooth device is a BLE link master device, and the sending the target data packet to the second bluetooth device includes:
receiving a sample data packet sent by the second Bluetooth device via the BLE link, wherein the sample data packet comprises second clock information of the second Bluetooth device;
determining a clock difference between the first Bluetooth device and the second Bluetooth device according to the second clock information;
adding the clock difference as the first clock information into the target data packet;
and sending a target data packet to the second Bluetooth device.
In a third aspect, the present application provides a bluetooth device, comprising:
the signal receiving and transmitting module is used for receiving a target data packet sent by another Bluetooth device through a BLE link, wherein the target data packet comprises a first receiving and transmitting window opening time, first clock information of the other Bluetooth device, a classical Bluetooth address of the current Bluetooth device and a logic address of classical Bluetooth allocated to the other Bluetooth device;
the operation module is used for determining clock difference between the first Bluetooth device and the second Bluetooth device according to the first clock information, and determining second transceiver window opening time and a frequency hopping point according to the clock difference, the first transceiver window opening time, the classical Bluetooth address and the logic address;
and the link construction module is used for opening a receiving and transmitting window when the clock of the link construction module reaches the opening time of the second receiving and transmitting window, and establishing a classical Bluetooth link with the other Bluetooth device through the receiving and transmitting window according to the frequency hopping frequency point.
In a fourth aspect, the present application provides a bluetooth device, comprising:
the signal receiving and transmitting module is used for sending a target data packet to another Bluetooth device through a BLE link, wherein the target data packet comprises a first receiving and transmitting window opening time, first clock information of the current Bluetooth device, a classical Bluetooth address of the other Bluetooth device and a logic address distributed to the current Bluetooth device;
and the link construction module is used for opening a receiving and transmitting window when the self clock reaches the opening time of the first receiving and transmitting window, and establishing a classical Bluetooth link with the other Bluetooth device through the receiving and transmitting window.
In a fifth aspect, the present application provides an electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the classical bluetooth link construction method according to any of the previous embodiments.
In a sixth aspect, the present application provides a computer readable storage medium storing a computer program for execution by a processor to implement the classical bluetooth link construction method according to any one of the previous embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a classical bluetooth link construction method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for determining a clock difference between a first bluetooth device and a second bluetooth device according to first clock information in a classical bluetooth link construction method according to an embodiment of the present application;
fig. 3 is a flow chart of a classical bluetooth link construction method according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a bluetooth device according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of a bluetooth device according to a fourth embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that, if the terms "upper," "lower," "inner," "outer," and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or an azimuth or the positional relationship that the product of the application is commonly put in use, it is merely for convenience of describing the present application and simplifying the description, and does not indicate or imply that the apparatus or element to be referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus should not be construed as limiting the present application.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
The first embodiment of the application provides a classical bluetooth link construction method which is applied to a second bluetooth device which establishes a BLE link with a first bluetooth device. The step of constructing a classical bluetooth link for the second bluetooth device is shown in fig. 1, and includes:
step S101: a target data packet sent by a first bluetooth device is received via a BLE link.
In this step, the target packet includes a first transceiver window opening time, first clock information of the first bluetooth device, a classical bluetooth address of the first bluetooth device, and a logical address of classical bluetooth allocated to the second bluetooth device.
The first receiving and transmitting window opening time is determined by the first Bluetooth device based on the local clock signal of the first Bluetooth device, namely, when the local clock signal of the first Bluetooth device reaches the first receiving and transmitting window opening time in the first Bluetooth device, the first Bluetooth device can open the receiving and transmitting window.
For the first clock information of the first bluetooth device, when the first bluetooth device is a BLE link master device and the second bluetooth device is a BLE link slave device, the first clock information may be a time point of a local clock of the first bluetooth device when the target data packet is transmitted. For example, when the first bluetooth device sends the target data packet when the local clock time point is 2, the first clock signal in the target data packet is time point 2. When the first bluetooth device is a BLE link slave device and the second bluetooth device is a BLE link master device, the first clock information may be a clock difference between the first bluetooth device and the second bluetooth device. That is, the first bluetooth device has previously determined a clock difference between the first bluetooth device and the second bluetooth device, and then transmits the determined time difference as first clock information to the second bluetooth device.
Step S102: a clock difference between the first bluetooth device and the second bluetooth device is determined based on the first clock information.
In this step, as specifically described in the foregoing step S101, when the first bluetooth device is a BLE link master device and the second bluetooth device is a BLE link slave device, the first clock information may be a time point of a local clock of the first bluetooth device when the target data packet is transmitted. As shown in fig. 2, determining the clock difference between the first bluetooth device and the second bluetooth device according to the first clock information at this time may specifically include the following steps:
step S201: and acquiring second clock information of the second Bluetooth device when the target data packet is received.
In this step, when the second bluetooth device receives the target data packet, the second bluetooth device may record a time point of the local clock of the second bluetooth device at this time as the second clock signal. For example, when the second bluetooth device receives the target data packet, the local clock of the second bluetooth device may have a time point of 5, and the time point of 5 may be used as the second clock signal.
Step S202: and determining the clock difference according to the difference value between the second Bluetooth information and the first Bluetooth information.
In some embodiments of the present application, a difference between a time point of a local clock of the second bluetooth device corresponding to the second bluetooth information and a time point of a local clock of the first bluetooth device corresponding to the first bluetooth device may be directly used as a clock difference between the first bluetooth device and the second bluetooth device. Therefore, the clock difference acquisition difficulty between the first Bluetooth device and the second Bluetooth device can be effectively reduced, and the requirement on hardware devices is reduced.
Alternatively, in some other embodiments of the present application, a counter may be included in the second bluetooth device, where the counter continues to count in the second bluetooth device, starting from 0 when equal to the maximum value. The target data packet may further include a synchronization word, where the synchronization word is coding information pre-agreed by the first bluetooth device and the second bluetooth device, the first bluetooth device writes the synchronization word into a header of the target data packet when sending the target data packet, the second bluetooth device obtains a count value of the counter when receiving the synchronization word, and determines a clock phase difference between the second bluetooth device and the first bluetooth device according to the count value, where the clock phase difference is a phase difference existing between local clocks of the first bluetooth device and the second bluetooth device. Specifically, the error between the local clocks of the first bluetooth device and the second bluetooth device is not necessarily a complete period, for example, at the same time, the local clock in the first bluetooth device corresponds to a time point of 3, and at this time, the local clock in the second bluetooth device may correspond to a time point of 5.3. The difference between 5 and 3 is the time period difference between the first bluetooth device and the second bluetooth device, and 0.3 is the clock phase difference between the first bluetooth device and the second bluetooth device. After the clock phase difference between the first Bluetooth device and the second Bluetooth device is determined, taking the sum of the clock phase difference and the difference between the second Bluetooth information and the first Bluetooth information as the clock difference. Thus, the clock phase difference of the second Bluetooth device and the first Bluetooth device is determined by acquiring the count value of the counter.
Further, in various embodiments of the present application, the number of counters in the second bluetooth device may be plural. For example, in some embodiments of the present application, the second bluetooth device may include two counters, where the count time difference between the two counters may be different, for example, one large time difference counter with a count time difference of 312.5 or 625us may be included, counting at intervals of 312.5 or 625us, and the other count time difference may be a fine counter with a count time difference of less than 1us, such as 0.5us, 0.7us, etc. The fine counter can count in the counting interval of the large time difference counter, namely, each time the large time difference counter counts, the fine counter counts from zero until the large time difference counter counts next time, and the fine counter counts and clears again from zero. In this case, the count values of the acquisition counters may be the count values of the respective acquisition counters.
Step S103: and determining the second receiving and transmitting window opening time and the frequency hopping frequency point according to the clock difference, the first receiving and transmitting window opening time, the classical Bluetooth address and the logic address.
In this step, the sum of the clock difference and the first transceiver window opening time may be used as the second transceiver window opening time. For example, if the time period difference in the clock difference is 3 and the time phase difference is 0.4, the clock difference is 3.4 and the first transceiver window opening time is 7, and the sum of the clock difference 3.4 and the first transceiver window opening time 7 is 10.4 at this time may be regarded as the second transceiver window opening time.
The frequency hopping point can be obtained through a frequency hopping algorithm according to a classical Bluetooth address of the first Bluetooth device, a logic address of classical Bluetooth distributed to the second Bluetooth device and first clock information of the first Bluetooth device, and the second Bluetooth device knows clock differences of the second Bluetooth device and the first Bluetooth device and the classical Bluetooth address of the second Bluetooth device, so that the second Bluetooth device can calculate the current clock of the first Bluetooth device at each moment, and further calculate the frequency hopping point.
Step S104: and opening the receiving and transmitting window when the self clock reaches the opening time of the second receiving and transmitting window.
In this step, after determining the second transceiver window opening time, the second bluetooth device opens the transceiver window when its own local clock reaches the second transceiver window opening time. Because the second receiving and transmitting window opening time is determined according to the clock difference and the first receiving and transmitting window opening time, when the local clock of the second Bluetooth device reaches the second receiving and transmitting window opening time, the local clock of the first Bluetooth device reaches the first receiving and transmitting window opening time, and at the moment, the receiving and transmitting windows of the first Bluetooth device are also opened simultaneously.
Step S105: and establishing a classical Bluetooth link with the first Bluetooth device through the receiving and transmitting window according to the frequency hopping frequency point.
In this step, the transceiver windows of the first bluetooth device and the second bluetooth device are opened simultaneously, so that the construction data of the classical bluetooth link can be exchanged through the transceiver windows according to the frequency hopping frequency points at this time, and the classical bluetooth link between the first bluetooth device and the second bluetooth device can be established according to the construction data.
Compared with the prior art, in the classical bluetooth link construction method provided by the first embodiment of the present application, under the condition that the first bluetooth device and the second bluetooth device have established a BLE link, the second bluetooth device directly receives a target data packet sent by the first bluetooth device through the BLE link, according to first clock information contained in the target data packet, and in combination with local clock information in the second bluetooth device, a clock difference between the first bluetooth device and the second bluetooth device can be determined, according to the clock difference and a first transceiver window opening time based on a clock of the first bluetooth device, the second bluetooth device can determine a second transceiver window opening time based on a clock of the second bluetooth device, when the clock of the second bluetooth device reaches a second transceiver window opening time, the second bluetooth device opens a transceiver window, and can exchange classical bluetooth link data packets with the first bluetooth device through the transceiver window, thereby establishing a classical bluetooth link, and the first bluetooth device and the second bluetooth device simultaneously open the transceiver window at the same time, thereby reducing delay in the classical bluetooth link construction process; in addition, the Page and Page Scan processes in the traditional technology are omitted, and the energy consumption can be effectively reduced.
The second embodiment of the application provides a classical bluetooth link construction method, which is applied to a first bluetooth device which has established a BLE link with a second bluetooth device. The step of constructing a classical bluetooth link for the first bluetooth device is shown in fig. 3, and includes:
step S301: the target data packet is sent to the second bluetooth device via the BLE link.
In this step, the target data packet includes a first transceiver window opening time, first clock information when the first bluetooth device transmits the target data packet, a classical bluetooth address of the first bluetooth device, and a logical address allocated to the second bluetooth device. The first receiving and transmitting window opening time is determined by the first Bluetooth device based on the local clock signal of the first Bluetooth device, namely, when the local clock signal of the first Bluetooth device reaches the first receiving and transmitting window opening time in the first Bluetooth device, the first Bluetooth device can open the receiving and transmitting window.
For the first clock information of the first bluetooth device, when the first bluetooth device is a BLE link master device and the second bluetooth device is a BLE link slave device, the first clock information may be a time point of a local clock of the first bluetooth device when the target data packet is transmitted. For example, when the first bluetooth device sends the target data packet when the local clock time point is 2, the first clock signal in the target data packet is time point 2. When the first bluetooth device is a BLE link slave device and the second bluetooth device is a BLE link master device, the first clock information may be a clock difference between the first bluetooth device and the second bluetooth device. That is, the first bluetooth device has previously determined a clock difference between the first bluetooth device and the second bluetooth device, and then transmits the determined time difference as first clock information to the second bluetooth device.
Specifically, the step of the first bluetooth device predetermining the clock difference between the first bluetooth device and the second bluetooth device may be receiving, via the BLE link, a sample data packet sent by the second bluetooth device, where the sample data packet includes second clock information of the second bluetooth device, and the second clock information may be a clock signal of a local clock of the second bluetooth device when the second bluetooth device sends the sample data packet, and determining the clock difference between the first bluetooth device and the second bluetooth device according to the second clock information.
Specifically, the clock difference between the first bluetooth device and the second bluetooth device determined according to the second clock information is substantially the same as the specific description of determining the clock difference between the first bluetooth device and the second bluetooth device according to the first clock information in the first embodiment, and the specific description of the foregoing embodiment may be referred to and will not be repeated herein.
Step S302: and opening the receiving and transmitting window when the self clock reaches the opening time of the first receiving and transmitting window.
In this step, when the local clock of the first bluetooth device reaches the first transceiver window opening time, the first bluetooth device opens the transceiver window. Since the target data packet is already sent to the second bluetooth device via the BLE link in step S301, as described in detail in the first embodiment, the second bluetooth device may obtain the second transmit-receive window opening time according to the target data packet, so that the transmit-receive windows of the first bluetooth device and the second bluetooth device are simultaneously opened.
Step S303: a classical bluetooth link is established with the second bluetooth device via the transceiving window.
In this step, the transceiver windows of the first bluetooth device and the second bluetooth device are opened simultaneously, so that the construction data of the classical bluetooth link can be exchanged through the transceiver windows at this time, and the classical bluetooth link between the first bluetooth device and the second bluetooth device can be established according to the construction data.
Compared with the prior art, in the classical bluetooth link construction method provided by the second embodiment of the present application, under the condition that the first bluetooth device and the second bluetooth device have established a BLE link, the first bluetooth device directly transmits a target data packet to the second bluetooth device through the BLE link, the second bluetooth device can determine the opening time of the transceiver window according to the first clock information and the opening time of the first transceiver window contained in the target data packet and in combination with the local clock information in the second bluetooth device, the first bluetooth device opens the transceiver window when the own clock reaches the opening time of the first transceiver window, and can exchange the classical bluetooth link data packet with the second bluetooth device through the transceiver window, so that the classical bluetooth link is established, and the first bluetooth device and the second bluetooth device simultaneously open the transceiver window at the same time, thereby reducing the delay of the classical bluetooth link construction process; in addition, the Page and Page Scan processes in the traditional technology are omitted, and the energy consumption can be effectively reduced.
An embodiment III of the present application relates to a Bluetooth device, as shown in FIG. 4, including: the signal transceiver module 401, where the signal transceiver module 401 is configured to receive, via a BLE link, a target data packet sent by another bluetooth device, where the target data packet includes a first transceiver window opening time, first clock information of the other bluetooth device, a classical bluetooth address of the current bluetooth device, and a logical address of a classical bluetooth allocated to the other bluetooth device;
the operation module 402 is configured to determine a clock difference between the first bluetooth device and the second bluetooth device according to the first clock information, and determine a second transceiver window opening time and a frequency hopping point according to the clock difference, the first transceiver window opening time, the classical bluetooth address, and the logical address;
the link construction module 403 is configured to open a transceiver window when the own clock reaches a second transceiver window opening time, and establish a classical bluetooth link with another bluetooth device through the transceiver window.
Compared with the prior art, in the bluetooth device provided in the third embodiment of the present application, under the condition that the current bluetooth device has established a BLE link with another bluetooth device, the current bluetooth device directly receives a target data packet sent by the other bluetooth device through the BLE link, according to first clock information included in the target data packet, in combination with local clock information in the current bluetooth device, a clock difference between the other bluetooth device and the current bluetooth device can be determined, according to the clock difference and a first transceiver window opening time based on a clock of the other bluetooth device, the current bluetooth device can determine a second transceiver window opening time based on the clock of the current bluetooth device, when the clock of the current bluetooth device reaches the second transceiver window opening time, the current bluetooth device can switch with the other bluetooth device through the transceiver window, thereby establishing a classical bluetooth link, and the current bluetooth device and the other bluetooth device can simultaneously open the transceiver window at the same time, so as to reduce delay of a classical bluetooth link construction process; in addition, the Page and Page Scan processes in the traditional technology are omitted, and the energy consumption can be effectively reduced.
It is not difficult to find that the third embodiment is an embodiment of the bluetooth device corresponding to the first embodiment, and therefore, the classical bluetooth link construction method in the first embodiment may correspondingly operate in the bluetooth device provided in the third embodiment, and each functional module in the bluetooth device provided in the third embodiment may correspondingly operate each step in the first embodiment.
A fourth embodiment of the present application relates to a bluetooth device, as shown in fig. 5, including: the signal transceiver module 501, the signal transceiver module 501 is configured to send a target data packet to another bluetooth device via a BLE link, where the target data packet includes a first transceiver window opening time, first clock information of the current bluetooth device, a classical bluetooth address of the other bluetooth device, and a logical address allocated to the current bluetooth device;
the link construction module 502, the link construction module 502 is configured to open a transceiver window when the own clock reaches a first transceiver window opening time, and establish a classical bluetooth link with another bluetooth device through the transceiver window.
Compared with the prior art, in the bluetooth device provided in the fourth embodiment of the present application, under the condition that the current bluetooth device has established a BLE link with another bluetooth device, the current bluetooth device directly transmits a target data packet to the other bluetooth device through the BLE link, the other bluetooth device can determine the opening time of the transceiving window according to the current clock information and the opening time of the first transceiving window included in the target data packet and in combination with the local clock information in the other bluetooth device, the current bluetooth device opens the transceiving window when the own clock reaches the opening time of the first transceiving window, and can exchange a classical bluetooth link data packet with the other bluetooth device through the transceiving window, thereby establishing a classical bluetooth link, and the current bluetooth device and the other bluetooth device simultaneously open the transceiving window at the same time, so that the delay of the construction process of the classical bluetooth link can be reduced; in addition, the Page and Page Scan processes in the traditional technology are omitted, and the energy consumption can be effectively reduced.
It is not difficult to find that the fourth embodiment is an embodiment of a bluetooth device corresponding to the second embodiment, and therefore, the classical bluetooth link construction method in the second embodiment may correspondingly operate in the bluetooth device provided in the fourth embodiment, and each functional module in the bluetooth device provided in the fourth embodiment may correspondingly operate each step in the second embodiment.
A fifth embodiment of the present application relates to an electronic device, as shown in fig. 6, including: at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; the memory 602 stores instructions executable by the at least one processor 601, where the instructions are executed by the at least one processor 601, so that the at least one processor 601 can perform the classical bluetooth link construction method in each of the embodiments described above.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
The sixth embodiment of the present application relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions easily conceivable by those skilled in the art within the technical scope of the present application should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The classical Bluetooth link construction method is characterized by being applied to a second Bluetooth device which has established a BLE link with a first Bluetooth device, wherein the first Bluetooth device is a classical Bluetooth link master device, the second Bluetooth device is a classical Bluetooth link slave device, and the classical Bluetooth link construction method comprises the following steps:
receiving a target data packet sent by the first Bluetooth device through the BLE link, wherein the target data packet comprises a first receiving and sending window opening time, first clock information of the first Bluetooth device, a classical Bluetooth address of the first Bluetooth device and a logic address of classical Bluetooth distributed to a second Bluetooth device;
determining clock difference between the first Bluetooth device and the second Bluetooth device according to the first clock information, and determining second transceiver window opening time and a frequency hopping frequency point according to the clock difference, the first transceiver window opening time, the classical Bluetooth address and the logic address;
starting a receiving and transmitting window when the self clock reaches the starting time of the second receiving and transmitting window;
and establishing a classical Bluetooth link with the first Bluetooth device through the receiving and transmitting window according to the frequency hopping frequency point.
2. The classical bluetooth link construction method according to claim 1, wherein the first bluetooth device is a BLE link master device and the second bluetooth device is a BLE link slave device, and wherein determining the clock difference between the first bluetooth device and the second bluetooth device according to the first clock information comprises:
acquiring second clock information of the second Bluetooth device when the target data packet is received;
and determining the clock difference according to the difference value of the second Bluetooth information and the first Bluetooth information.
3. The classical bluetooth link construction method according to claim 2, wherein the second bluetooth device comprises a counter, the target data packet comprises a synchronization word, and wherein determining the clock difference from the difference between the second bluetooth information and the first bluetooth information comprises:
acquiring the count value of the counter when the synchronous word is received;
determining a clock phase difference of the second Bluetooth device and the first Bluetooth device according to the count value;
and taking the sum of the clock phase difference and the difference value of the second Bluetooth information and the first Bluetooth information as the clock difference.
4. The classical bluetooth link construction method according to claim 1, wherein the first bluetooth device is a BLE link slave device, the second bluetooth device is a BLE link master device, and determining the clock difference between the first bluetooth device and the second bluetooth device according to the first clock information comprises:
the clock difference included in the first clock information is acquired.
5. The classical Bluetooth link construction method is characterized by being applied to a first Bluetooth device which has established a BLE link with a second Bluetooth device, wherein the first Bluetooth device is a classical Bluetooth link master device, the second Bluetooth device is a classical Bluetooth link slave device, and the classical Bluetooth link construction method comprises the following steps:
transmitting a target data packet to the second bluetooth device via the BLE link, wherein the target data packet comprises a first transceiving window opening time, first clock information when the first bluetooth device transmits the target data packet, a classical bluetooth address of the first bluetooth device and a logical address of classical bluetooth allocated to the second bluetooth device;
starting a receiving and transmitting window when the self clock reaches the starting moment of the first receiving and transmitting window;
a classical bluetooth link is established with the second bluetooth device via the transceiving window.
6. The classical bluetooth link construction method according to claim 5, wherein the first bluetooth device is a BLE link slave device, the second bluetooth device is a BLE link master device, and the transmitting the target data packet to the second bluetooth device comprises:
receiving a sample data packet sent by the second Bluetooth device via the BLE link, wherein the sample data packet comprises second clock information of the second Bluetooth device;
determining a clock difference between the first Bluetooth device and the second Bluetooth device according to the second clock information;
adding the clock difference as the first clock information into the target data packet;
and sending the target data packet to the second Bluetooth device.
7. A bluetooth device, comprising:
the signal receiving and transmitting module is used for receiving a target data packet sent by another Bluetooth device through a BLE link, wherein the target data packet comprises a first receiving and transmitting window opening time, first clock information of the other Bluetooth device, a classical Bluetooth address of the current Bluetooth device and a logic address of classical Bluetooth allocated to the other Bluetooth device;
the operation module is used for determining clock difference between the first Bluetooth device and the second Bluetooth device according to the first clock information, and determining second transceiver window opening time and a frequency hopping point according to the clock difference, the first transceiver window opening time, the classical Bluetooth address and the logic address;
and the link construction module is used for opening a receiving and transmitting window when the clock of the link construction module reaches the opening time of the second receiving and transmitting window, and establishing a classical Bluetooth link with the other Bluetooth device through the receiving and transmitting window according to the frequency hopping frequency point.
8. A bluetooth device, comprising:
the signal receiving and transmitting module is used for sending a target data packet to another Bluetooth device through a BLE link, wherein the target data packet comprises a first receiving and transmitting window opening time, first clock information of the current Bluetooth device, a classical Bluetooth address of the other Bluetooth device and a logic address of classical Bluetooth allocated to the current Bluetooth device;
and the link construction module is used for opening a receiving and transmitting window when the self clock reaches the opening time of the first receiving and transmitting window, and establishing a classical Bluetooth link with the other Bluetooth device through the receiving and transmitting window.
9. An electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the classical bluetooth link construction method according to any of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the classical bluetooth link construction method according to any one of claims 1 to 6.
CN202311363150.4A 2023-10-20 2023-10-20 Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium Pending CN117676526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311363150.4A CN117676526A (en) 2023-10-20 2023-10-20 Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311363150.4A CN117676526A (en) 2023-10-20 2023-10-20 Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117676526A true CN117676526A (en) 2024-03-08

Family

ID=90067093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311363150.4A Pending CN117676526A (en) 2023-10-20 2023-10-20 Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117676526A (en)

Similar Documents

Publication Publication Date Title
US9742514B2 (en) Method, apparatus, and system for generating timestamp
CN103026774B (en) Use wireless communications method and the system of collision avoidance protocol
CN100592730C (en) Hybrid-type data transmission apparatus and method for high performance wireless LAN
CN109996325B (en) Clock synchronization system and method of wireless sensor network
WO2022111342A1 (en) Communication synchronization method and apparatus, storage medium, chip and related device
US10248611B2 (en) Data transmission method and mobile terminal
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
CN117676526A (en) Classical Bluetooth link construction method, bluetooth device, electronic device and storage medium
CN116133108B (en) Data synchronization method for low-power consumption Bluetooth communication and electronic equipment
US20060126671A1 (en) Cycle time synchronization apparatus and method for wireless 1394 system
CN112788622B (en) Configuration method, device and equipment of sensing window
CN117424774A (en) Communication anti-interference method and device, electronic equipment and storage medium
EP2634931A1 (en) Wireless communication device and wireless communication method
CN108282871A (en) Receiving node, sending node and transmission method
CN114422614B (en) Method, device, equipment and storage medium for controlling multilink equipment to transmit data
CN115932812A (en) Ultra-wideband ranging method, device and system
CN210780847U (en) EtherCAT bus clock distribution system
CN114363943A (en) Method and electronic device for determining transmission delay
EP3547617B1 (en) Modular ups system, and data transmission method for power devices
CN105656740A (en) RS422-CAN bus converter
CN219041799U (en) Protocol conversion gateway
US20190045473A1 (en) Adaptive mesh synchronized time network
CN117715171B (en) Time synchronization method, electronic device and storage medium
CN110831071B (en) Information processing method and network equipment
JP3399451B2 (en) Transmission device and communication method

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