Ankündigung

Einklappen
Keine Ankündigung bisher.

"Ein Neuer" und sein erstes Problem ... LinKNX

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

    "Ein Neuer" und sein erstes Problem ... LinKNX

    Hallo Zusammen!

    Zuerst möchte ich mich kurz vorstellen,
    mein Name ist Thomas, bin 39 Jahre jung und komme aus Österreich.


    Nun zu meinem Problem:
    habe nun 3 Tage lang das Forum durchforstet, aber irgendwie will
    LinKNX meine LinKNX.xml Datei nicht ...
    Nach unendlichen Versuchen habe ich nun herausgefunden das das Problem genau dortliegt wo die Gruppenadressen definiert werden :

    <?xmlversion="1.0" ?>
    <
    config>
    <
    objects>
    <!--
    Licht schalten -->
    <
    objecttype="1.001"id="light_room1"gad="2/0/1">Bedroom 1 light</object>
    </
    objects>

    also genau hier:
    <objecttype="1.001"id="light_room1"gad="2/0/1">Bedroom 1 light</object>

    Fehlermeldung:
    terminate called after throwing an instance of 'ticpp::Exception'

    also irgendwie blicke ich jetzt nicht mehr durch ...
    denn lasse ich die Zeile weg startet linKNX sauber und ich kann alles sehen was sich am Bus tut ...

    #2
    Hoi Thomas

    Hmm, komisch, bis auf die Leerzeichen ...
    Code:
    <config>
      <objects>
      <!-- Licht schalten -->
        <object id="l_wc_spot" gad="1/0/3" type="1.001">Licht WC Spot</object>
      </objects>
    Hast Du die Services:
    Code:
      <services>
        <knxconnection url="ip:xxx.xxx.xxx.xxx" />
        <xmlserver type="inet" port="1028" />
        <location lon="x.xxxxxx" lat="xx.xxxxxx" />
        <persistence type="file" path="/etc/linknx/persist" />
        <smsgateway type="clickatell" user="****" pass="****" api_id="1234567" />
        <exceptiondays>
          <date day="1"  month="1"  /> <!-- Neujahrstag -->
          <date day="2"  month="1"  /> <!-- Berchtoldstag -->
          <date day="1"  month="5"  /> <!-- Tag der Arbeit -->
          <date day="1"  month="8"  /> <!-- Nationalfeiertag Schweiz -->
          <date day="25" month="12" /> <!-- Weihnachtstag -->
          <date day="26" month="12" /> <!-- Stephanstag -->
          <date day="22" month="4" year="2011" /> <!-- Karfreitag -->
          <date day="25" month="4" year="2011" /> <!-- Ostermontag -->
          <date day="2"  month="6" year="2011" /> <!-- Auffahrt Do -->
          <date day="13" month="6" year="2011" /> <!-- Pfingstmontag -->
        </exceptiondays>
      </services>
    Grüsse Bodo
    Fragen gehören ins Forum, und nicht in mein Postfach;
    EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

    Kommentar


      #3
      Hoi

      Vielleicht hast du zweimal die gleiche ID oder die gleiche GA.
      Grüsse Bodo
      Fragen gehören ins Forum, und nicht in mein Postfach;
      EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

      Kommentar


        #4
        Oder der type ist nicht richtig? 1.001 ist schalten EIN AUS

        Welche Version von linknx hast Du denn?
        Code:
        linknx -V
        linknx 0.0.1.27
        - Clickatell SMS gateway enabled
        - E-mail gateway enabled (with pthread support)
        - MySQL support enabled
        - LUA scripting support enabled
        - Log4cpp logging enabled
        Grüsse Bodo
        Fragen gehören ins Forum, und nicht in mein Postfach;
        EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

        Kommentar


          #5
          Hallo Bodo!

          Herzlichen Dank für Deine Unterstützung.
          Richtig, also bei dieser Gruppenadresse geht es um ein/aus ..
          Die Services funktionieren ..
          IP-Gateway N146

          Version: 1.27

          [admin@WL-20CF30CE0953 linknx]$ linknx -V
          linknx 0.0.1.27
          - Clickatell SMS gateway enabled
          - E-mail gateway enabled
          - LUA scripting support enabled

          Kommentar


            #6
            Hmmm, dann weiss ich spontan auch nicht woran's liegt ...
            Grüsse Bodo
            Fragen gehören ins Forum, und nicht in mein Postfach;
            EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

            Kommentar


              #7
              Hallo Tqm,
              hast du die Leerzeichen wie Bodo schon angesprochen mal eingefügt?
              Ich habe es nicht getestet aber vorne das "objecttype" soltest du mal auseinandergeschrieben probieren.

              Also
              Code:
              [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]1.001[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]light_room1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]gad[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]2/0/1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]Bedroom 1 light[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE]
              in
              Code:
              [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]object [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]1.001[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000] id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]light_room1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]gad[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]2/0/1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]Bedroom 1 light[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE]
              oder, so schreibe ich das
              Code:
              [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]object [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]light_room1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]gad[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]2/0/1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]1.001[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]Bedroom 1 light[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/COLOR][/SIZE]
              ändern.

              Gruß Maik

              Kommentar


                #8
                Hallo Maik!

                Beide Varianten versucht - leider kein Erfolg ...

                So sieht die linKNX.xml nun aus:

                <?xmlversion="1.0" ?>
                <
                config>
                <
                objects>
                <!--
                Licht schalten -->
                <
                object type="1.001"id="light_room1"gad="2/0/1">Bedroom 1 light</object>
                </
                objects>
                <
                rules>
                </
                rules>
                <
                services>
                <
                knxconnectionurl="ip:127.0.0.1" />
                <
                xmlservertype="inet"port="1028" />
                <
                persistencetype="file"path="/opt/linknx/persist" />
                <
                exceptiondays>
                <
                dateday="1"month="1" />
                <!--
                Neujahrstag -->
                </
                exceptiondays>
                </
                services>
                </
                config>

                Kommentar


                  #9
                  Sorry, aber die Leerzeichen müssen schon sein - und zwar alle. Ein guter Test ist zunächst die Datei mal im Browser zu öffnen. Bei mir z.B. Opera. Wenn der Browser das schluckt, ist die Syntax schon mal richtig. Probier' doch mal:

                  Code:
                  <?xmlversion = "1.0" ?>
                   <config>
                   <objects>
                   <!-- Licht schalten -->
                   <object type="1.001" id="light_room1" gad="2/0/1">Bedroom 1 light</object>
                   </objects>
                   <rules>
                   </rules>
                   <services>
                   <knxconnection url="ip:127.0.0.1" />
                   <xmlserver type="inet" port="1028" />
                   <persistence type="file" path="/opt/linknx/persist" />
                   <exceptiondays>
                   <date day="1" month="1" />
                   <!-- Neujahrstag -->
                   </exceptiondays>
                   </services>
                   </config>
                  Viele Grüße,

                  Stefan
                  Mein Sammelsurium: TS2, Zennio Z38, Siemens LOGO!, Medeodata 140 S, Weinzierl KNX ENO 620, Eibmarkt IP Router, MDT KNX IP IF, Wiregate, Node-Red mit KNX Ultimate, MDT Smart II, diverse Aktoren verschiedener Hersteller ...

                  Kommentar


                    #10
                    Hallo Stefan,

                    danke aber das wars leider auch noch nicht ...

                    Kommentar


                      #11
                      Tippe doch einfach mal die Zeile neu, vielleicht war da ein komisches Sonderzeichen drin?

                      Kommentar


                        #12
                        Hallo,

                        starte doch mal Linknx mit
                        linknx -c/etc/eib/linknx.xml -d/etc/eib/linknx.log
                        (Die Pfade entsprechend deiner Konfiguration anpassen)
                        dann erhälst du eine Log Datei, in der auch Fehlermeldungen stehen.

                        Gruß

                        Kommentar


                          #13
                          Hallo zusammen!

                          Also wenn ich das nun so erstelle funktionierts!
                          (mittels LinKNX Excel Konverter)

                          <object id="Küche Beleuchtung schalten" gad="2/0/1" type="1.001" flags="">Küche Beleuchtung schalten</object>

                          Besten Dank soweit mal, die eine oder andere Frage wird schon noch auftachen ...

                          lg
                          Thomas

                          Kommentar


                            #14
                            Hoi

                            Hmmm, Umlaute und Leerzeichen sind auch eine mögliche Fehlerquelle...
                            Grüsse Bodo
                            Fragen gehören ins Forum, und nicht in mein Postfach;
                            EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

                            Kommentar

                            Lädt...
                            X