The invention relates to an internet-of-things time precision maintaining method based on adaptive compensation, which is applied to internet-of-things equipment and comprises the following steps that:
the internet-of-things equipment counts and checks own
crystal oscillator frequency according to a received
time synchronization pulse per second interval, determines the current
crystal oscillator oscillation number per second, and sends the
time synchronization pulse per second interval to
the internet-of-things equipment; outputting a local pulse per second as the standard output of the time of
the Internet of Things equipment; and if
the Internet of Things equipment receives three groups of
effective time synchronization second pulses within one hour, calculating an arithmetic mean value of the oscillation number of the
crystal oscillator corresponding to the three groups of
effective time synchronization second pulses, and taking the sum of the arithmetic mean value and the
nominal frequency of the
crystal oscillator as the corrected oscillation number per second of the
crystal oscillator. Compared with the prior art, the method has the advantages of dynamically calculating the oscillation number of the
crystal oscillator per second of
the Internet of Things equipment, improving the time precision keeping capability of the
Internet of Things equipment and the like.