mpl
Posts: 34
Joined: Sun Aug 12, 2012 6:14 pm

Probleme mit DS1307

Mon Feb 18, 2013 8:44 pm

Hallo, ich möchte einen DS1307 mit dem PI verkuppeln, hab jedoch Probleme

sudo modprobe i2c-dev
sudo modprobe i2c-bcm2708
sudo i2cdetect -y -a 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
sudo modprobe rtc-ds1307
sudo i2cdetect -y -a 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
sudo -s
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
exit
sudo hwclock -r
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Das Argument ist ungültig
pi@raspberrypi ~ $ sudo hwclock --debug
hwclock from util-linux 2.20.1
Using /dev interface to clock.
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
/dev/rtc0 does not have interrupt functions. Waiting in loop for time from /dev/rtc0 to change
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Das Argument ist ungültig
...synchronization failed
ls -al /sys/class/i2c-adapter/i2c-1/1-0068/rtc/rtc0/
insgesamt 0
drwxr-xr-x 3 root root 0 Feb 18 21:37 .
drwxr-xr-x 3 root root 0 Feb 18 21:37 ..
-r--r--r-- 1 root root 4096 Feb 18 21:39 date
-r--r--r-- 1 root root 4096 Feb 18 21:39 dev
lrwxrwxrwx 1 root root 0 Feb 18 21:39 device -> ../../../1-0068
-r--r--r-- 1 root root 4096 Feb 18 21:39 hctosys
-rw-r--r-- 1 root root 4096 Feb 18 21:39 max_user_freq
-r--r--r-- 1 root root 4096 Feb 18 21:39 name
drwxr-xr-x 2 root root 0 Feb 18 21:39 power
-r--r--r-- 1 root root 4096 Feb 18 21:39 since_epoch
lrwxrwxrwx 1 root root 0 Feb 18 21:37 subsystem -> ../../../../../../../class/rtc
-r--r--r-- 1 root root 4096 Feb 18 21:39 time
-rw-r--r-- 1 root root 4096 Feb 18 21:37 uevent
er wird vom I2C erkannt aber mag nicht so richtig... könnt ihr mir weiterhelfen?

als RTC kommt dieser hier zum Einsatz

http://www.ebay.de/itm/I2C-RTC-DS1307-A ... 412wt_1186

R2+R3 sind entfernt worden da die Pullups auf +5V gingen und der PI ja eigene Pullups hat

danke für eure hilfe

Return to “Deutsch”