RTC on Berry GPS-IMU Forums › General discussion › RTC on Berry GPS-IMU Tagged: gps rtc This topic contains 2 replies, has 2 voices, and was last updated by bepeho 3 weeks, 6 days ago. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts September 8, 2018 at 4:23 pm #7542 bepehoParticipant Hi 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 option Many thanks for your help, Patrice November 16, 2018 at 4:57 am #7627 JonParticipant I’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 bepehoParticipant Hi Jon, I had to programmatically synchronize the rpi clock. A periodic task gets the gps time and call a the system date command In Java, that’s: Date date1 = new SimpleDateFormat("ddMMyyHHmmss") .parse(gpsDate.stringValue() + gpsTime.stringValue()); cmd = "/bin/date"; cmd = String.format("-s %s", date1); ProcessBuilder processBuilder = new ProcessBuilder(cmd); I hope it helps. Patrice Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic.