Patent ID: 11881931
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Telecommunications (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A data transmission time obtaining method, wherein the method is applied to a power line communication (PLC) network, and comprises:
sending, by a first device, a first packet to a second device, and obtaining a first send timestamp of the first packet;
receiving, by the first device, a second packet that is sent by the second device and that corresponds to the first packet, and obtaining a first receive timestamp of the second packet;
determining, by the first device, timing frequency of the second device based on timing frequency of the first device and a frequency offset between the timing frequency of the first device and the timing frequency of the second device;
determining, by the first device based on the timing frequency of the second device, a second receive timestamp at which the second device receives the first packet and a second send timestamp at which the second device sends the second packet; and
determining, by the first device, a data transmission time between the first device and the second device based on the first send timestamp, the first receive timestamp, the second send timestamp, and the second receive timestamp.