RTC on Berry GPS-IMU

Home Forums Forums General discussion RTC on Berry GPS-IMU

Tagged: 

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

    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

     

     

    #7627
    Jon
    Participant

    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.

    #7633
    bepeho
    Participant

    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.
    Patrice

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…