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 error in Raspbian

    Thread Closed 
    RTC ds3231 error in Raspbian
    pyto00
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: Sep 2019
    Reputation: 0
    #1
    09-19-2019, 04:30 PM (This post was last modified: 09-19-2019, 05:40 PM by Daniel_BlueWave.)
    Hi,

    I am struggling to get the RTC working. I have a ds3231.
    Installed and setup correctly.

    I get this error when sudo hwclock -r

    hwclock ioctl(rtc_rd_time) to /dev/rtc0 to read the time failed remotrre I/o error
     ds3231 is also not listed in /etc/modules. I only found ds1307.

    Can it be that ONLY ds1307 is supported by openauto ?
    Daniel_BlueWave
    Offline

    BlueWave Team member

    Posts: 1,213
    Threads: 45
    Joined: Jul 2019
    Reputation: 53
    #2
    09-19-2019, 05:38 PM
    If you would configure it correctly then it would work. The OpenAuto Pro is an application running under regular Raspbian OS and error you have mentioned is coming from OS. Looks like you did not read any posts in RTC section at forum or in User Manual.

    We recommend to do that.
    pyto00
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: Sep 2019
    Reputation: 0
    #3
    09-22-2019, 07:33 PM
    (09-19-2019, 05:38 PM)Daniel_BlueWave Wrote: If you would configure it correctly then it would work. The OpenAuto Pro is an application running under regular Raspbian OS and error you have mentioned is coming from OS. Looks like you did not read any posts in RTC section at forum or in User Manual.

    We recommend to do that.
    Thanks for the recommendation, but I did follow the steps that I found in the RTC section.
    I found the source of the error, it has something to do with adress interfering on the i2c bus I think
    When I pull the touchscreen out of SDA and SCL, then hwclock -r returns the date&time
    When I connect the touchscreen again, I get one of the following errors

    rhwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument
    hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Remote I/O error

     I also noticed that the touchscreen sometimes uses the same adress as the RTC ( 0x68 ).
     This is only with the touchscreen connected to the i2c bus., 
    pi@raspberrypi:~ $ i2cdetect -y 1
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- 17 -- 19 -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
    40: -- -- -- -- -- 45 -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- 68 -- -- -- 6c -- -- --
    70: -- -- -- -- -- -- -- --
    


    Any tips?
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • 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