raspberry-pi-timelapse-camera icon indicating copy to clipboard operation
raspberry-pi-timelapse-camera copied to clipboard

RTC

Open metalivedev opened this issue 9 years ago • 0 comments

Hi! I saw your article on HN and you indicated that you had trouble with keeping real time. If you have a GPS signal then you have real time. Time is part of the GPS signal.

Please see https://labs.mediatek.com/site/global/developer_tools/mediatek_linkit/api_references/Lib_DataTime.gsp

As long as LinkIt ONE is powered (either by USB or by battery) the clock will continue to tick. In the case of losing power or first time booting, there are several ways to initialize current time: Parse the GPGGA data from GPS.getData() or connect to an NTP (Network Time Protocol) server via Wi-Fi.

I hope that helps! I don't have any equipment to test with, or I would have tried to add it to your project code.

metalivedev avatar May 16 '16 02:05 metalivedev