RTC on Berry GPS-IMUHome › Forums › Forums › General discussion › RTC on Berry GPS-IMUTagged: gps rtcThis topic has 2 replies, 2 voices, and was last updated 4 years, 6 months ago by bepeho.Viewing 3 posts - 1 through 3 (of 3 total)AuthorPosts September 8, 2018 at 4:23 pm #7542 bepehoParticipantHi Mark,I’ve the GPS berry-imu installed on my rpi3B+.It works fine.Is there a standard way to use it also as a clock ?I’ll operate the system disconnected from the internet, and RTCs are using the same pins as the GPS.I know I have the option to retrieve the satellite time from one of its NMEA messages and sync the local time, but i’d like a leaner optionMany thanks for your help,Patrice November 16, 2018 at 4:57 am #7627 JonParticipantI’d also like to know if there is a way to use the GPSIMU as an RTC. Any help on this would be appreciated. November 18, 2018 at 12:47 am #7633 bepehoParticipantHi Jon,I had to programmatically synchronize the rpi clock. A periodic task gets the gps time and call a the system date commandIn Java, that’s:Date date1 = new SimpleDateFormat("ddMMyyHHmmss") .parse(gpsDate.stringValue() + gpsTime.stringValue()); cmd[0] = "/bin/date"; cmd[1] = String.format("-s %s", date1); ProcessBuilder processBuilder = new ProcessBuilder(cmd);I hope it helps. PatriceAuthorPostsViewing 3 posts - 1 through 3 (of 3 total)You must be logged in to reply to this topic.Log In Username: Password: Keep me signed in Log In