huhu,
ich hänge hier mal wieder total in der luft. Habe mir vor ein paar Tagen 2 Bauteile kommen lassen, welche über i2c mit dem Pi (B+) arbeiten. Die Installationsbeschreibungen sind einfach und verständlich und bilden den eindruck das man in 10 min. fertig ist. Ich sitze nun heute den 2ten Tag dran und bekomme es nicht zum laufen.
es geht um die Piusv von CW2 und das Piface shim TRC.
Habe beide nach den angebotenen Anleitungen installiert.
Piusv
http://www.piusv.de/support/piupsm…ation_v0.01.pdf
Piface shim RTC
http://www.piface.org.uk/assets/piface_…eClockguide.pdf
Zuerst zu Piusv
nach der erfolgreichen installation soll ich laut Anleitung "piusvd start" eingeben.
Ergebnis:
pi@raspberrypi ~ $ sudo piusvd start
/usr/local/bin/gpio: Warning: File not present: /dev/i2c-0
piusvdaemon is allready running and will not be started again!
Dann zur RTC
Dort nach der installation und eingabe der Uhrzeit per
den pi 10min Stromlos gemacht und vom Internet getrennt.
Ergebnis war, wie bei meinem glück erwartet, das die zeit nicht stimmt.
Um zu testen ob da überhaupt was gelesen werden kann:
Ergebnis:
pi@raspberrypi ~ $ sudo hwclock -r
hwclock: ioctl() to /dev/rtc0 to turn on update interrupts failed unexpectedly: Eingabe-/Ausgabefehler
Nun habe ich mich erstmal mit i2c befasst und einige einstellungen getroffen:
pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
Meine /boot/config.txt
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=900
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c1=on
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
start_x=1
gpu_mem=128
core_freq=250
sdram_freq=450
over_voltage=2
disable_camera_led=1
device-tree=
Alles anzeigen
Blacklist angelegt (weil DT deaktiviert):
/etc/modules bearbeitet
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
snd-bcm2835
i2c-bcm2708
i2c-dev
Über Raspi-config hatte ichs auch noch aktiviert und i2c ist mit benutzer PI angegeben.
Nach dem Booten wird unter /dev/ auch i2c-1 angezeigt.
Nun habe ich gelesen das ich den Piusv auf i2c-1 zuweisen muss, aber ich finde da nichts zu und ehrlich gesagt fehlt mir das wissen mir da jetzt ein reim drauf zu machen.
Bei der RTC kann mann unten in der Anleitung lesen das "The PiFace RTC should be detected at 6f. Note, if the RTC driver is already loaded"
Dies ist bei mir der Fall.
pi@raspberrypi ~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- UU
70: -- -- -- -- -- -- -- --
Nur trotzdem noch der Fehler wie oben angegeben. Ebenso die frage müsste die Piusv nicht in der Liste auch auftauchen?
Hoffe es kann mir jemand helfen, bei der hitze ist das viel verlangt ich weiß
lg