Ankündigung

Einklappen
Keine Ankündigung bisher.

Probleme KNXD und USB

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

    #16
    When I installed this new knxd (0.14.1-4) it did not start when booting up the raspberrypi (i believe the systemd is lacking the /etc/systemd/system/knxd.service configuration file)

    nor did it start+enable knxd.socket
    Am I missing something?

    Btw, where is the .ini-style configuration file?

    Kommentar


      #17
      Smurf : Kann ich nicht genau sagen, habe ich auch mal von irgendwo übernommen. Kannst Du von mir aus gerne einbauen.

      BTW: Das Thema mit dem Port 6720 habe ich auch. Der Socket startet, im lsof seh ich auch das systemd auf den Port hört, aber die Kommunikation läuft nicht. Suche gerade noch ob es an meinem System liegt oder doch was anderes. KNX per local-Interface funktioniert.
      Bus-Anbindung ist ein Merten-USB-Interface.

      Grüße
      Gunnar

      Kommentar


        #18
        The knxd service was not enabled by default:

        pi@raspberrypi:~$ systemctl status knxd
        ● knxd.service - KNX Daemon
        Loaded: loaded (/lib/systemd/system/knxd.service; disabled)
        Active: inactive (dead)


        I enabled the service

        pi@raspberrypi:~$ sudo systemctl enable knxd

        And now it starts up at boot but the listener for port 6720 is not working - knxtool just hangs
        The listener shows tcp6 when it should be tcp:


        pi@raspberrypi:~$ netstat -na | grep 6720 | grep LIST
        tcp6 0 0 :::6720 :::* LISTEN

        When I start it manually it works OK and the listener is tcp:

        pi@raspberrypi:~$ netstat -na | grep 6720
        tcp 0 0 0.0.0.0:6720 0.0.0.0:* LISTEN

        Any idea what is wrong?


        Kommentar


          #19
          Smurf : Kurzes Update - ein Telnet auf den Port funktioniert, knxtool bleibt aber stehen.

          Es sieht so aus als wenn sich der knxd über den IP-Socket nicht rührt. Ich stecke dazu wenig drin ob das so möglich ist. Vlt. hast Du ja eine Idee.

          Kommentar


            #20
            Zitat von migabc Beitrag anzeigen
            The listener shows tcp6 when it should be tcp:
            No, that is not a problem. tcp6 implies tcp4 on Linux unless you specifically turn that off, which systemd does not do.

            Please use "lsof". It should show the open port twice, once for systemd and once for knxd.
            If it does, apparently knxd doesn't properly react to systemd-passed ports. I'll have to look at that. That code was somewhat restructured in 0.14 and admittedly not yet tested by me. That's one reason why there is a "stable" version which still points to 0.12.

            The .ini-style config file does not have a location because the old options still work and I wanted to be sure not to kill people's configuration. knxd.conf will be automatically rewritten in v0.16, at which point it'll be used both by systemd and SysV startup scripts. Right now that happens behind your back when knxd starts.
            DistKV, Home Assistant, 1wire, KNX, Python, Asterisk, SMD-Lötkolben

            Kommentar


              #21
              gklein Sollte wieder funktionieren.
              DistKV, Home Assistant, 1wire, KNX, Python, Asterisk, SMD-Lötkolben

              Kommentar


                #22
                Danke, komme vermutlich erst am Mittwoch zum Testen. Ich gebe Bescheid.

                Kommentar


                  #23
                  Hat schon mal jemand von euch von stretch auf buster aktualisiert?

                  Ich habe mit knxd Probleme seit Raspbian GNU/Linux 10 (buster) 4.14.87-v7+

                  dpkg spackt rum. Vorher mit stretch lief alles, möchte ich behaupten.

                  Jetzt erzählt er was von
                  Code:
                  Jul 17 16:02:11 loxberry knxd[4820]: E00000084: [ 1:main] There is no KNX addr= in section 'main'.
                  Jul 17 16:02:11 loxberry knxd[4820]: F00000109: [ 1:main] Error setting up the KNX router.
                  Jul 17 16:02:11 loxberry systemd[1]: knxd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
                  In meiner knxd.conf steht nur eine Zeile:
                  Code:
                  KNXD_OPTS="-b ipt:miniserver"
                  Damit ging es bisher immer.

                  Ideen?

                  Achso. Die /lib/systemd/system/knxd.socket sieht so aus:
                  Code:
                  [Unit]
                  Description=KNX Daemon (socket)
                  
                  [Socket]
                  ListenStream=/var/run/knx
                  ListenStream=6720
                  
                  [Install]
                  WantedBy=sockets.target
                  Und /lib/systemd/system/knxd.service so

                  Code:
                  [Unit]
                  Description=KNX Daemon
                  After=network.target knxd.socket
                  Requires=knxd.socket
                  
                  [Service]
                  EnvironmentFile=/etc/knxd.conf
                  ExecStart=/usr/bin/knxd $KNXD_OPTS
                  User=knxd
                  Group=knxd
                  Type=notify
                  
                  Restart=on-failure
                  RestartSec=10
                  
                  [Install]
                  WantedBy=multi-user.target network-online.target
                  Also=knxd.socket
                  Danke + Grüße
                  Wörsty
                  Zuletzt geändert von Woersty; 17.07.2019, 15:13.

                  Kommentar


                    #24
                    Zitat von Woersty Beitrag anzeigen
                    Code:
                    KNXD_OPTS="-b ipt:miniserver"
                    Damit ging es bisher immer.

                    Ideen?
                    Aber nicht mit einer einigermassen aktuellen Version. Es fehlen die obligatorischen Argumente für -e und -E. Und mit dem Subject (USB) hat dein Post wohl nichts zu tun.
                    EIB/KNX, VISU mit knxd + linknx + knxweb, Steuerbefehle via SMS und Email mit postfix + procmail

                    Kommentar


                      #25
                      Habs gelöst. Habe auf ini umgestellt.

                      Kommentar

                      Lädt...
                      X