RTC on Berry GPS-IMU

Forums General discussion RTC on Berry GPS-IMU


This topic contains 2 replies, has 2 voices, and was last updated by  bepeho 7 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #7542


    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,






    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.



    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[0] = "/bin/date";
    cmd[1] = String.format("-s %s", date1);
    ProcessBuilder processBuilder = new ProcessBuilder(cmd);

    I hope it helps.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Blip, blop, bloop...