Ankündigung

Einklappen

Serverwartung 21.2.



Am 21.2. im Laufe des späten Abends wird eine Serverwartung durchgeführt. Das Forum ist dadurch für gut zwei Stunden nicht erreichbar.
Es wird eine Wartungsseite geschaltet.

Mehr anzeigen
Weniger anzeigen

Siri API for the Gira HomeServer app

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #31
    I figured out what was wrong: ;-)

    The TUL must be programmed to work as a TPUART device (it does not work like a USB device as is the case of the GIRA KNX-UBS interface):

    Here's the procedure I used to get it working as a tpuart device (might be useful for somebody)

    Programming TUL (TP-UART USB Light) adapter

    1) Install the TUL programming software (dfu-programmer)

    sudo apt-get install dfu-programmer


    2) Fetch the Firmware

    sudo wget -O TPUARTtransparent.hex http://busware.de/tiki-download_file.php?fileId=54

    3) Flash the TUL:

    #Note: I found that it was not necessary to press the program button on the bottom of the TUL

    Run:
    sudo dfu-programmer atmega32u4 erase --force
    sudo dfu-programmer atmega32u4 flash TPUARTtransparent.hex
    sudo dfu-programmer atmega32u4 reset
    sudo reboot


    The TUL will now show up as: /dev/ttyACM0 which is owned by root


    4) Change device ownership

    Run:
    udevadm info --attribute-walk /sys/bus/usb/drivers/cdc_acm/*/tty/ttyACM0 | grep KERNELS | head -3 | tail -1
    < will return KERNELS==“something”>

    Add the following line to:
    sudo vi /etc/udev/rules.d/90-knxusb-devices.rules
    ...
    # busware.de TUL (TP-UART USB Light) adapter
    SUBSYSTEM=="tty", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="204b", ACTION=="add", KERNELS=="something", SYMLINK+="ttyKNX1", OWNER="knxd"


    Note: you need to replace the something with whatever udevadm displayed above


    Force new settings:
    sudo udevadm test /sys/bus/usb/drivers/cdc_acm/*/tty/ttyACM0


    Verify that /dev/ttyKNX1 exists and belongs to "knxd":
    ls -lL /dev/ttyKNX1


    The TUL will now work as a TPUART device:


    5) Add -b tpuarts:/dev/ttyKNX1 to the options in /etc/knxd.conf.

    sudo vi /etc/knxd.conf

    cat /etc/knxd.conf | grep ^KNXD_OPTS
    KNXD_OPTS="-e 0.0.100 -E 0.0.101:7 -D -T -R -S -i 6720 -b tpuarts:/dev/ttyKNX1"


    6) Restart the knxd

    sudo systemctl restart knxd


    Check /var/log/syslog for errors:
    tail -f /var/log/syslog


    Check that is it listening on port 6720:
    netstat -na | grep 6720


    7) Test your KNX address groups (example address group 0/0/3)


    Turn ON light:
    knxtool groupswrite ip:localhost 0/0/3 1



    Turn Off Light:
    knxtool groupswrite ip:localhost 0/0/3 0


    Kommentar

    Lädt...
    X