BlueWave Studio forum
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Help
  • View Today's Post
  • More
    • BlueWave Studio
    • Shop
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Help View Today's Post
    More
    • BlueWave Studio
    • Shop
    BlueWave Studio forum OpenAuto Pro Real Time Clock (RTC) RTC DS3231 does not keep time

    RTC DS3231 does not keep time
    Victor_Mateos03
    Offline

    Junior Member

    Posts: 29
    Threads: 10
    Joined: Jan 2020
    Reputation: 2
    #1
    07-19-2020, 04:35 PM (This post was last modified: 07-20-2020, 05:48 PM by Daniel_BlueWave.)
    Good, I have a RTC DS3231 and I have a problem that will not be solved, when I start the car and I am at home it connects to the wifi and synchronizes the time and keeps it fine until I stop the car, then when I start again and it turns on the screen when not finding the home wifi does not synchronize the time and shows me the last time it had when it was turned off, that is, the clock stops counting when the system is turned off and I do not know why, to see if someone has passed it the same, a greeting.

    My configuration is:
    Raspberry Pi 3b +
    Ugreen sound card
    Bluetooth ugreen
    Timer relay shutdown system
    gecko242
    Offline

    Member

    Posts: 84
    Threads: 7
    Joined: Feb 2020
    Reputation: 13
    #2
    07-19-2020, 05:48 PM
    Does your DS3231 have a battery connected? How have you configured it within raspbian?
    BlueWave
    Offline

    Administrator

    Posts: 2,750
    Threads: 64
    Joined: Jun 2019
    Reputation: 67
    #3
    07-19-2020, 07:59 PM
    (07-19-2020, 05:48 PM)gecko242 Wrote: Does your DS3231 have a battery connected? How have you configured it within raspbian?

    Regarding configuration, you can use bwsrtc command that will configure your RTC automatically.
    Victor_Mateos03
    Offline

    Junior Member

    Posts: 29
    Threads: 10
    Joined: Jan 2020
    Reputation: 2
    #4
    07-20-2020, 10:18 AM
    (07-19-2020, 07:59 PM)BlueWave Wrote:
    (07-19-2020, 05:48 PM)gecko242 Wrote: Does your DS3231 have a battery connected? How have you configured it within raspbian?

    Regarding configuration, you can use bwsrtc command that will configure your RTC automatically.
    The rtc has a battery connected and it is well configured (or so I think) since the time does save it, but the time step does not count when the raspberry is turned off
    Daniel_BlueWave
    Offline

    BlueWave Team member

    Posts: 1,158
    Threads: 45
    Joined: Jul 2019
    Reputation: 52
    #5
    07-20-2020, 05:44 PM (This post was last modified: 07-20-2020, 05:47 PM by Daniel_BlueWave.)
    Looks like is RTC related issue. Did you try to change battery? What is the manufacturer of this component, maybe it needs additional configuration?

    You can check this site in order to narrow the issue: https://learn.adafruit.com/adafruit-ds32...cuitpython
    Victor_Mateos03
    Offline

    Junior Member

    Posts: 29
    Threads: 10
    Joined: Jan 2020
    Reputation: 2
    #6
    07-21-2020, 07:35 AM
    (07-20-2020, 05:44 PM)Daniel_BlueWave Wrote: Parece que es un problema relacionado con RTC. ¿Intentaste cambiar la batería? ¿Cuál es el fabricante de este componente, tal vez necesita configuración adicional?

    Puede consultar este sitio para reducir el problema: https://learn.adafruit.com/adafruit-ds32...cuitpython

    This is the rtc that I have installed, when I used Crankshaft it worked for me without problem. I have not changed the battery but I think it is not that, I think that if the battery were exhausted it would not keep the last power on and would return to an hour for example 1/1/1999 as it happens with the PCs, anyway I will try to change it or put another rtc to see

           
    ELCouz
    Offline

    Junior Member

    Posts: 20
    Threads: 3
    Joined: Jun 2020
    Reputation: 2
    #7
    08-02-2020, 06:53 AM
    (07-21-2020, 07:35 AM)Victor_Mateos03 Wrote: This is the rtc that I have installed, when I used Crankshaft it worked for me without problem. I have not changed the battery but I think it is not that, I think that if the battery were exhausted it would not keep the last power on and would return to an hour for example 1/1/1999 as it happens with the PCs, anyway I will try to change it or put another rtc to see


    By default Raspbian OS save the last known time at shutdown with fake hwclock and then read this stored time at boot.

    Seems like a configuration problem that kept you on the FAKE RTC.


    What output does sudo hwclock -r give you?
    Setup info for troubleshooting:
    - Board: RPi 4B with OAP 9.1
    - Supply: Official RPi
    - Display: 9" 1280x720 IPS/High brightness -> AUO C090EAN01.1
    - Touch: GOODIX GT911 over USB
    - Sound: HIFIBERRY DAC+ ADC
    - Mic: USB Mic
    - Bluetooth: CSR8510
    - Phone: S8 Active with Android 9.0
    - AA v5.4
    Victor_Mateos03
    Offline

    Junior Member

    Posts: 29
    Threads: 10
    Joined: Jan 2020
    Reputation: 2
    #8
    08-02-2020, 09:19 AM
    (08-02-2020, 06:53 AM)ELCouz Wrote:
    (07-21-2020, 07:35 AM)Victor_Mateos03 Wrote: Este es el rtc que instalé, cuando usé Crankshaft me funcionó sin problemas. No he cambiado la batería, pero creo que no es eso, creo que si la batería se agotara, no mantendría la última energía encendida y volvería a una hora, por ejemplo, el 1/1/1999, como sucede con las PC, de todos modos intentaré cambiarlo o poner otro rtc para ver


    De forma predeterminada, el sistema operativo Raspbian guarda el último tiempo conocido en el apagado con hwclock falso y luego lee este tiempo almacenado en el arranque.

    Parece un problema de configuración que te mantuvo en el RTC FALSO .


    ¿Qué salida le da sudo hwclock -r ?
       
    frankpintosr
    Offline

    Passionate Carputer Enthusiast

    Posts: 131
    Threads: 11
    Joined: Apr 2019
    Reputation: 13
    #9
    08-02-2020, 07:32 PM
    (08-02-2020, 09:19 AM)Victor_Mateos03 Wrote:
    (08-02-2020, 06:53 AM)ELCouz Wrote:
    (07-21-2020, 07:35 AM)Victor_Mateos03 Wrote: Este es el rtc que instalé, cuando usé Crankshaft me funcionó sin problemas. No he cambiado la batería, pero creo que no es eso, creo que si la batería se agotara, no mantendría la última energía encendida y volvería a una hora, por ejemplo, el 1/1/1999, como sucede con las PC, de todos modos intentaré cambiarlo o poner otro rtc para ver


    De forma predeterminada, el sistema operativo Raspbian guarda el último tiempo conocido en el apagado con hwclock falso y luego lee este tiempo almacenado en el arranque.

    Parece un problema de configuración que te mantuvo en el RTC FALSO .


    ¿Qué salida le da sudo hwclock -r ?

    If the issue you’re having is due to the fake hardware clock, the following will remove it. 
    #Disable the fake-hwclock
    sudo apt-get -y remove fake-hwclock
    sudo update-rc.d -f fake-hwclock remove
    sudo systemctl disable fake-hwclock
    sudo reboot now
    Thanks, Frank
    Carputer Detail   Parts List
    2004 Chevrolet Tahoe Z71 w/ Bose & Onstar
    Victor_Mateos03
    Offline

    Junior Member

    Posts: 29
    Threads: 10
    Joined: Jan 2020
    Reputation: 2
    #10
    08-03-2020, 09:34 AM
    [quote pid='11063' dateline='1596359958']
    If the issue you’re having is due to the fake hardware clock, the following will remove it. 
    [/quote]
    #Disable the fake-hwclock
    sudo apt-get -y remove fake-hwclock
    sudo update-rc.d -f fake-hwclock remove
    sudo systemctl disable fake-hwclock
    sudo reboot now


    I'll try it when I have a moment, hope it works, thanks a lot for the help.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)

    Pages ({1}): 1 2 Next »



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Help · BlueWave Studio · Shop

    Copyright © bluewavestudio.io. All rights reserved.

    Linear Mode
    Threaded Mode