CPC H04L 7/0037 (2013.01) [H04J 3/0667 (2013.01); H04L 7/0012 (2013.01)] | 13 Claims |
1. A communication apparatus including a first counter and a second counter, the communication apparatus comprising:
a clock signal generation unit configured to generate a first clock signal for the first counter to increment a value of the first counter and a second clock signal for the second counter to increment a value of the second counter;
a first increment unit configured to increment the value of the first counter based on the first clock signal;
a second increment unit configured to increment the value of the second counter based on the first clock signal;
a generation unit configured to generate a synchronization signal each time the value of the second counter is incremented by a predetermined number;
a transmission unit configured to transmit the synchronization signal to another apparatus;
an error acquisition unit configured to acquire an error based on the value of the first counter and the value of the second counter; and
a control unit configured to control the second counter based on a correction value so that the value of the second counter is close to the value of the first counter,
wherein the control unit sets a value based on the error as the correction value in a case where the error acquired by the error acquisition unit is smaller than a predetermined value, and
wherein the control unit sets a value smaller than the predetermined value as the correction value in a case where the error acquired by the error acquisition unit is larger than the predetermined value.
|