Raspberry PI + i2c Busmaster (DS2482-800)

  • Hallo Forum,


    hat dieses Kombi zufällig jemand am laufen (der DS2482-800 ist ein 8-port 1-wire i2c Busmaster).
    Bei mir läuft das leider nicht (Bus wird nicht korrekt vom Pi, bzw. owfs erkannt).


    hier nochmal die Hard/Software Config:


    - Adafruit Prototyping Pi Plate Kit (http://www.adafruit.com/products/801)
    - verbunden sind 3.3V, GND, SDA, SCL mit dem DS2482.
    - AD0,AD1,AD2 auf GND (http://datasheets.maximintegrated.com/en/ds/DS2482-800.pdf).


    Software config:


    Commentet out the blacklisting (because bcm2708 uses the GPIO pins):

    Code
    root@PiDoor:~# cat /etc/modprobe.d/raspi-blacklist.conf
    # blacklist spi and i2c by default (many users don't need them)
    
    
    #blacklist spi-bcm2708
    #blacklist i2c-bcm2708


    Many modules loaded, maybe i must blacklist some to make the DS2482-800 work?


    Should the DS2482-800 not visible in the DMESG log?

    Code
    root@PiDoor:~# dmesg | grep i2c
    [    5.317391] bcm2708_i2c_init_pinmode(0,0)
    [    5.508709] bcm2708_i2c_init_pinmode(0,1)
    [    5.515670] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100000)
    [    5.971077] bcm2708_i2c_init_pinmode(1,2)
    [    5.977836] bcm2708_i2c_init_pinmode(1,3)
    [    6.079191] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
    [   12.763614] i2c /dev entries driver


    Seems to be correct, internal and "external" i2c bus:

    Code
    root@PiDoor:~# i2cdetect -l
    i2c-0	i2c       	bcm2708_i2c.0                   	I2C adapter
    i2c-1	i2c       	bcm2708_i2c.1                   	I2C adapter


    Pi Hardware Version 2 - i2c-1 is the external bus:

    Code
    root@PiDoor:~# i2cdetect -y 1
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --


    Latest kernel (updated with apt-get dist-upgrade):

    Code
    root@PiDoor:~# uname -a
    Linux PiDoor 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l GNU/Linux


    Buildin owfs:

    Code
    root@PiDoor:~# owserver --version
    owserver version:
    	2.8p15
    libow version:
    	2.8p15
    
    
    root@PiDoor:~# owserver --i2c=/dev/i2c-1 -p 4304 --error_level=9 --foreground
    Segmentation fault


    latest one - self compiled:

  • Hast du denn die Pullup-Widerstände bestückt und wenn ja auf welchen Wert?


    Mal versucht die wegzulassen?


    Am Olinuxino MAXI hatte ich auch Probleme mit I2C und einem RTC-Modul, welches nicht speziell für den Olinuxino gemacht ist. Die Kommunikation hat erst sauber funktioniert als ich die Pullup-Widerstände vom RTC-Modul runtergelötet hatte.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!