Back to results
US 12,641,557 B2Granted
Bluetooth-based time synchronization method, control device, and storage medium
AssigneeHuawei Technologies Co., Ltd.
InventorsSulin Yang, Xiaofeng Zhang
Life of this patent
Estimating the term…
Abstract
A time synchronization method includes obtaining a first BLUETOOTH packet from a master device, where the first BLUETOOTH packet carries first time stamp information, and the first time stamp information indicates a sending moment t1 that is of the first BLUETOOTH packet and that is determined based on a clock of the master device; and correcting a local time of a slave device based on the first time stamp information.
Claims17
A first electronic device, comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory and configured to:
- obtain, from a second electronic device, a first BLUETOOTH packet carrying first time stamp information, wherein the first time stamp information indicates a first sending moment (t1) of the first BLUETOOTH packet, and wherein the first time stamp information is a field in a protocol data unit of a BLUETOOTH physical frame in the first BLUETOOTH packet;
- send, to the second electronic device, a second BLUETOOTH packet carrying second time stamp information, wherein the second time stamp information indicates a second sending moment (t2) of the second BLUETOOTH packet, and wherein t2 is a sending moment of a first bit of an access address in the second BLUETOOTH packet;
- obtain, from the second electronic device, a third BLUETOOTH packet carrying third time stamp information, wherein the third time stamp information indicates an average unidirectional transmission delay between the first electronic device and the second electronic device;
- and
- correct a local time based on the first time stamp information and the average unidirectional transmission delay,
- wherein the first electronic device a smart wearable device, and wherein the second electronic device is a mobile device.
6 more elements
A second electronic device comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory and configured to:
- obtain clock information of the second electronic device;
- determine a pre-start sending moment of a first BLUETOOTH packet based on the clock information;
- determine a sending moment of a first bit of an access address in the first BLUETOOTH packet based on the pre-start sending moment;
- set the sending moment as a sending moment (t1) of the first BLUETOOTH packet;
- send the first BLUETOOTH packet to a first electronic device at the pre-start sending moment, wherein the first BLUETOOTH packet carries first time stamp information, wherein the first time stamp information indicates t1, and wherein the first time stamp information is a field in a protocol data unit of a BLUETOOTH physical frame in the first BLUETOOTH packet;
- obtain, from the first electronic device, a second BLUETOOTH packet carrying second time stamp information, wherein the second time stamp information indicates a sending moment (t2) of the second BLUETOOTH packet;
- determine, based on the clock information, a receiving moment (t3) at which the second BLUETOOTH packet is received;
- calculate an average unidirectional transmission delay between the second electronic device and the first electronic device based on t1, t2, and t3, and
- send, to the first electronic device, a third BLUETOOTH packet carrying third time stamp information, wherein the third time stamp information indicates the average unidirectional transmission delay,
- wherein the first electronic device is a smart wearable device, and wherein the second electronic device is a mobile device.
10 more elements
A method comprising:
- obtaining, by a first electronic device, a first BLUETOOTH packet from a second electronic device, wherein the first BLUETOOTH packet carries first time stamp information, wherein the first time stamp information indicates a first sending moment (t1) of the first BLUETOOTH packet, and wherein the first time stamp information is a field in a protocol data unit of a BLUETOOTH physical frame in the first BLUETOOTH packet;
- sending, by the first electronic device, a second BLUETOOTH packet to the second electronic device, wherein the second BLUETOOTH packet carries second time stamp information, wherein the second time stamp information indicates a second sending moment (t2) of the second BLUETOOTH packet, and wherein t2 is a sending moment of a first bit of an access address in the second BLUETOOTH packet;
- obtaining, by the first electronic device, a third BLUETOOTH packet from the second electronic device, wherein the third BLUETOOTH packet carries third time stamp information, and wherein the third time stamp information indicates an average unidirectional transmission delay between the first electronic device and the second electronic device;
- correcting, by the first electronic device, a local time of the first electronic device based on the first time stamp information and the average unidirectional transmission delay;
- obtaining, by the second electronic device before sending the first BLUETOOTH packet to the first electronic device, clock information of the second electronic device;
- determining, by the second electronic device, a pre-start sending moment of the first BLUETOOTH packet based on the clock information;
- determining, by the second electronic device, a sending moment of a first bit of an access address in the first BLUETOOTH packet based on the pre-start sending moment;
- and
- setting, by the second electronic device, the sending moment of the first bit as t1, wherein the first electronic device is a smart wearable device, and wherein the second electronic device is a mobile device.
6 more elements
Dependencies are inferred from the claim text.