[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-28 Thread William B
I couldn't point to the rtc0 device, but after much suffering I was able to create the rtc1 device. root@beaglebone:~# ls -al | grep rtc* -rw-r--r-- 1 root root 0 Jul 27 2017 rtc0 root@beaglebone:~# ls -la /dev/rtc* lrwxrwxrwx 1 root root 4 May 21 2016 /dev/rtc -> rtc0 crw---

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-28 Thread Greg
Look at the link in /dev/rtc: ls -al | grep rtc If you got it to point at /dev/rtc1, I would very much like to know how you accomplished that! On Friday, July 28, 2017 at 10:09:19 AM UTC-4, William B wrote: > > Greg, it's okay. I was able to make the RTC be recognized as rtc1 in the > system.

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-28 Thread Greg
Only /dev/rtc0 is going to be updated automatically. /dev/rtc1 is not going to be updated automatically, as far as I can determine, with the Debian distributions as published. You would have to use the config tools to switch from rtc0 to rtc1 and compile a new kernel. So the common scheme you

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-28 Thread William B
Greg, it's okay. I was able to make the RTC be recognized as rtc1 in the system. Just turned off the BBB, disconnected everything that was connected to the hardware and starts again. I'm sure the RTC module was properly connected to the BBB, so I believe that there could only be some configurat

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-28 Thread William B
Greg, I'd just like to prevent the RTC from being updated with the system date and time so that I can even use a script to do this task when I need to. How do I prevent the RTC from being updated automatically? Command response "timedatectl" root@beaglebone:~# timedatectl Local time: Fri

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-28 Thread Greg
There is lots of stuff going on, and it is messy. Check out this link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785445 I tried the configuration via udev, but as reported in the above link, it doesn't work. Apparently the only way to get the /dev/rtc link to point to rtc1 instead of

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
Actually what is happening is this: when I remove the power from the BBB, the date and time return to the default setting. Because the RTC is automatically associated with system time auto-tuning, then its time is also being changed incorrectly (I had not noticed this in reboot because it is ne

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
Well, rtc0 is most likely the on AM335x on die real time clock, which will not persist time across reboots. On Thu, Jul 27, 2017 at 7:54 PM, William B wrote: > Finally I got ... the last hint from William Hermans indicated me > something about the device name, which could be "rtcX", which made m

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
Finally I got ... the last hint from William Hermans indicated me something about the device name, which could be "rtcX", which made me execute: "ls -la /dev/rtc*": root@beaglebone:~# ls -la /dev/rtc* lrwxrwxrwx 1 root root 4 May 21 2016 /dev/rtc -> rtc0 crw--- 1 root root 254, 0 May 2

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
My driver is actually loaded from a custom overlay write I wrote myself. So all of the initial steps listed on that adafruit link, I do not have to bother with. But that's a bit advanced, and going from experience, trying to explain how I did that "wont compute" until said person trying to understa

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread Greg
Try lsmod and see if the driver for your RTC is listed. If not, try dmesg (I usually use dmesg | less, f is forward, b is backward, and q is quit) and search for a message which may indicate a problem loading the driver. Look for the character device /dev/rtc1 Also, hwclock command behaves s

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
William, Also to save you from future grief. Make sure you load the proper drivers for your hardware,then if you're going to write your own software to read from the RTC. Use /dev/rtcx( probably /dev/rtc1 ), and do not try to read directly from the RTC over I2C. Trust me . . . On Thu, Jul 27, 201

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
On Thu, Jul 27, 2017 at 4:24 PM, William B wrote: > Is there any other difference in this latest version of Debian? I'm > following a tutorial below, but the command "hwclock -r -f /dev/rtc1" is > indicating failure to communicate with the new device: > > *TUTORIAL*: > https://learn.adafruit.com/

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
Just adding: root@beaglebone:/# i2cdetect -y -r 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- --

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
Is there any other difference in this latest version of Debian? I'm following a tutorial below, but the command "hwclock -r -f /dev/rtc1" is indicating failure to communicate with the new device: *TUTORIAL*: https://learn.adafruit.com/adding-a-real-time-clock-to-beaglebone-black/set-rtc-time *E

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
On Thu, Jul 27, 2017 at 3:02 PM, William B wrote: > *Grahan:* > You're 100% correct. Running "i2cdetect -y -r 2" instead of "1" at the > end, it detected the RTC at address 0x68, as we can see in the available > tutorials. > Answering your question, I'm using the latest available Debian release >

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
Ok! Thanks for the tip! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@google

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread Graham Haddock
William B: If you are using older code examples, now just change all references to I2C-1 to become I2C-2 and you should be on your way. --- Graham == On Thu, Jul 27, 2017 at 5:02 PM, William B wrote: > *Grahan:* > You're 100% correct. Running "i2cdetect -y -r 2" instead of "1" at the > end, i

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
*Grahan:* You're 100% correct. Running "i2cdetect -y -r 2" instead of "1" at the end, it detected the RTC at address 0x68, as we can see in the available tutorials. Answering your question, I'm using the latest available Debian release (bone-debian-8.8-iot-armhf-2017-07-01-4gb.img) available her

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
It's not so much the debian version, as it is the kernel. kernel 3.8.x is different from kernel 4.x. The easiest way to see what is attached it this: root@wgd:~# i2cdetect -l i2c-0 i2c OMAP I2C adapterI2C adapter i2c-1 i2c OMAP I2C adapter

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread Graham
What version of Debian are you running. On Debian 8, what was in the docs as I2C-1 is now I2C-2. Hook your translator to pins P9-19 and P9-20 and run "i2cdetect -y -r 2" I2C-2 is enabled in the device tree by default. --- Graham == -- For more options, visit http://beagleboard.org/discuss --

Re: [beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William Hermans
On Thu, Jul 27, 2017 at 1:24 PM, William B wrote: > Hi! > I bought the I2C logic converter 3.3V => 5v and I've connected the RTC to > the BBB, but running "i2cdetect -y -r 1" doesn't find the RTC device. I've > checked the wiring of the connections and I repeated the process a few > times, but it

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-27 Thread William B
Hi! I bought the I2C logic converter 3.3V => 5v and I've connected the RTC to the BBB, but running "i2cdetect -y -r 1" doesn't find the RTC device. I've checked the wiring of the connections and I repeated the process a few times, but it doesn't detect the RTC. Any suggestion? -- For more

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-26 Thread William B
I'm convinced that the PCA9306 and the RTC PHILIPS PCF85063TP are excellent solutions. However, removing the resistors I think is not good. I'm going to use the bidirectional I2C-bus translator because it's easier to find where I live. Thank you everyone for the attention. PS: William Hermans

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-26 Thread Greg
Here is what I used: https://www.seeedstudio.com/Grove-High-Precision-RTC-p-2741.html I'm using the Greens so it conveniently plugs in to the Grove connector. The lithium coin cell was not available at the local stores and I had to order via Amazon. This device uses 3.3V battery and it is plug

[beagleboard] Re: RTC's SDA and SCL Resistors

2017-07-26 Thread William B
John, I get it. But I do not know how it would be possible to do this in my DS1307 module which is of this type: http://www.ebay.com/itm/5-PCS-I2C-RTC-DS1307-AT24C32-Real-Time-Clock-Module-For-AVR-ARM-PIC-/172308340060?epid=846722400&hash=item281e609d5c:g:VxcAAOSwawpXsn0J How would It connect to