Forums - sntp_get_time_of_day

3 posts / 0 new
Last post
sntp_get_time_of_day
shen
Join Date: 24 Oct 14
Posts: 1
Posted: Tue, 2017-01-10 01:33

Hi

we are using GT202 IOE module in our product. Recently we found a problem, that is we use the fuction sntp_get_time_of_day to sync the system RTC. Before 2017,we got the seconds always one day faster (86400) than the real UTC,but since 2017.01.01, it is correct now. It is very strange. Does anyone knows? or any suggestions? Thanks in advance.

By the way, Is it possible that Qualcomm open the source code of this part?

  • Up0
  • Down0
natie
Join Date: 3 Jun 14
Posts: 9
Posted: Wed, 2017-01-11 01:13

Hi, I use the QCA4004. Just did aqcom_sntp_get_time_of_day and  tv_sec returned 1484042840, according to me that is running a day behind since 2017... (on my watch it is now 1/11/2017 10:07AM). 

  • Up0
  • Down0
natie
Join Date: 3 Jun 14
Posts: 9
Posted: Thu, 2017-03-09 11:52

My test, first column my NTP server time, second column time returned by the QCA400x:

NTP Server Time

Atheros SNTP Client Time

date -s '2015-01-25 12:34:56'

TIMESTAMP 1422189344 TIME 25-01-2015 12:35:44

date -s '2016-01-25 12:34:56'

TIMESTAMP 1453725341 TIME 25-01-2016 12:35:41

date -s '2017-01-25 12:34:56'

TIMESTAMP 1485261336 TIME 24-01-2017 12:35:36

date -s '2018-01-25 12:34:56'

TIMESTAMP 1516883737 TIME 25-01-2018 12:35:37

date -s '2019-01-25 12:34:56'

TIMESTAMP 1548419733 TIME 25-01-2019 12:35:33

date -s '2020-01-25 12:34:56'

TIMESTAMP 1579955732 TIME 25-01-2020 12:35:32

date -s '2021-01-25 12:34:56'

TIMESTAMP 1611491729 TIME 24-01-2021 12:35:29

date -s '2022-01-25 12:34:56'

TIMESTAMP 1643114133 TIME 25-01-2022 12:35:33

date -s '2023-01-25 12:34:56'

TIMESTAMP 1674650122 TIME 25-01-2023 12:35:22

date -s '2024-01-25 12:34:56'

TIMESTAMP 1706186132 TIME 25-01-2024 12:35:32

date -s '2025-01-25 12:34:56'

TIMESTAMP 1737722128 TIME 24-01-2025 12:35:28

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.