Zum Inhalt springen

Frickelzeugs

Handgemachtes aus dem Bastelkeller

  • Willkommen
  • LogoControl
    • Was ist LogoControl?
    • Installation (Raspberry Pi 2)
    • Installation (Windows)
    • Konfiguration
    • REST/JSON-Webservice
    • Android/iOS Steuerung
    • Für Fortgeschrittene
      • Trigger
      • Shell Scripte ausführen
      • Eigene valueTextConverter erstellen
      • LogoControl und FHEM
      • LogoControl mit Nginx als Webserver
    • Download
  • LOGO-Programmierung
    • LOGOs vernetzen (Master/Master)
    • VM-Adressen der LOGO
    • UDF für Rollladensteuerung
    • UDFs für Taster
    • Funksteckdosen an der LOGO
    • Helligkeitssensor für die LOGO
  • Sonstige Projekte
    • Galaxy Tab 2 Wandhalterung
    • LED-Umbau Wandleuchte
    • Hausnummer aus Beton
    • FingerprintDoorbell
  • Forum

Verbindungsproblem LogoControl -> Logo

Willkommen › Foren › LogoControl › Verbindungsproblem LogoControl -> Logo

Verschlagwortet: Logo, LogoControl, Pi

  • This topic has 3 Antworten, 2 Stimmen, and was last updated vor 6 years, 11 months by DonTim.
Log In Register Lost Password
4 Beiträge anzeigen - 1 bis 4 (von insgesamt 4)
  • Autor
    Beiträge
  • 23. März 2019 um 10:18 #3863
    DonTim
    Participant

    Hallo zusammen,

    ich hab hier schon einige Beiträge dazu gefunden, meist wurden sie selbst gelöst aber nicht beschrieben woran es lag.
    Bin genau nach der Anleitung vorgegangen und sobald ich in der config von LogoControl die IP von 0.0.0.0 ändere, bekomme ich keine Verbindung mehr, dieses Problem hatten hier wohl schon einige, eine Lösung hab ich leider nicht gefunden.

    Die Hardware sind ein Raspberry Pi 3 B+ und 3 Logo8.

    Ich habe folgende IP-Konfigurationen:

    Raspberry Pi: 192.168.178.200
    Logo 1: 192.168.178.201
    Logo 2: 192.168.178.202
    Logo 3: 192.168.178.203

    Im Logo-Programm hab ich die Server-Verbindung hinzugefügt, bei jeder Logo. Muss ich in der Fritzbox noch irgendwelche Ports freigeben? Was hat es genau mit der libnodave-Bibliothek aufsich? Hab sie einfach mal auf dem Pi entpackt, da in der Anleitung mir nicht klar wird was ich damit tun soll. Das Anpingen der Logos funktioniert übrigens auch über die Konsole des Pi´s.

    Anbei noch meine Config von Logocontrol. Hoffe mir kann Jemand weiterhelfen, da ich jetzt seit mehreren Tagen bei google und hier im Forum nicht fündig geworden bin.

    <?xml version=“1.0″ encoding=“utf-8″?>
    <configuration>
    <settings>
    <plc id=“myLogo“ type=“Logo8″ ip=“192.168.178.201″ />
    <httpWebservice port=“8088″ />
    <httpsWebservice port=“8080″ username=“dontim“ passwordHash=“09b43339c4694b5e2b4d80e4dfa51c4907f47ceb“ hashSalt=“3fg698cf“ /><!– generate your SHA1 password hash here: http://www.sha1generator.de –>
    <valueTextConverter>
    <!– Verschiedene Konverter zur Überführung von Value (ganzzahliger Rohwert aus der Logo) in ValueText (Anzeigewert für den Benutzer) –>
    <textMapping id=“an_aus“>
    <!– Text-Mapping für aus (0) und an (1) –>
    <valueText value=“0″ text=“aus“ />
    <valueText value=“1″ text=“an“ />
    </textMapping>
    <textMapping id=“rollo“>
    <!– Text-Mapping für Rolläden –>
    <valueText value=“0″ text=“geschlossen“ />
    <valueText value=“1″ text=“mittel“ />
    <valueText value=“2″ text=“offen“ />
    </textMapping>
    <textMapping id=“auf_zu“>
    <!– Text-Mapping für Tür-/Fensterkontakte –>
    <valueText value=“0″ text=“zu“ />
    <valueText value=“1″ text=“auf“ />
    </textMapping>
    <calculation id=“minsec“>
    <!– Analogwert zu/von Zeitwert (Bsp: 4873 zu 81:13) –>
    <valueToText calculation=“{Floor([value]/60)}:{if([value]%60>9,“,’0′)}{[value]%60}“ />
    <textToValue valueParseRegex=“(\d+):(\d+)“ calculation=“{[value1]*60+[value2]}“ />
    </calculation>
    <calculation id=“time“>
    <!– Analogwert zu/von Uhrzeit (4873 zu 13:09) –>
    <valueToText calculation=“{Floor(LogoDec2Hex([value])/100)}:{if(LogoDec2Hex([value])%100>9,“,’0′)}{LogoDec2Hex([value])%100}“ />
    <textToValue valueParseRegex=“(\d+):(\d+)“ calculation=“{LogoHex2Dec([value1]*100+[value2])}“ />
    </calculation>
    </valueTextConverter>
    </settings>
    <infrastructure>
    <group name=“Dachgeschoss“>
    <group name=“Schlafzimmer“>
    <device id=“1″ name=“Licht“ type=“light“>
    <attribute id=“1″ name=“Status“ plc=“myLogo“ address=“Q1″ valueTextConverter=“an_aus“ />
    <method id=“1″ name=“on“ plc=“myLogo“ address=“150.0″ />
    <method id=“2″ name=“off“ plc=“myLogo“ address=“150.1″ />
    </device>
    <device id=“2″ name=“Rollladen“ type=“shutter“>
    <attribute id=“1″ name=“Status“ plc=“myLogo“ address=“106″ datatype=“dword“ valueTextConverter=“rollo“ />
    <method id=“1″ name=“open“ plc=“myLogo“ address=“150.2″ />
    <method id=“2″ name=“close“ plc=“myLogo“ address=“150.3″ />
    </device>
    <device id=“3″ name=“Fensterkontakt“>
    <attribute id=“1″ name=“Status“ plc=“myLogo“ address=“I4″ valueTextConverter=“auf_zu“ />
    </device>
    <device id=“4″ name=“Temperatur“>
    <attribute id=“1″ name=“Soll“ plc=“myLogo“ address=“151″ datatype=“word“ gain=“0.1″ />
    <attribute id=“2″ name=“Ist“ plc=“myLogo“ address=“AI1″ gain=“0.1″ />
    </device>
    </group>
    </group>
    </infrastructure>
    </configuration>

    23. März 2019 um 10:23 #3864
    DonTim
    Participant

    Hier noch ein Auszug aus dem Logfile:
    23/03/2019 09:20:25: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:27: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:30: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:32: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:34: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:36: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:38: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:40: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)
    23/03/2019 09:20:42: Fehler bei Verbindungsaufbau zu PLC mit ID ‚myLogo‘: Couldn’t open TCP connaction to 192.168.178.201
    System.ApplicationException: Couldn’t open TCP connaction to 192.168.178.201
    at LogoControl.Logo.LogoConnection.Connect () [0x000b2] in <bebc68aac44645529bb9ad05bb06ae08>:0
    at LogoControl.Controller.Start () [0x0013b] in <bebc68aac44645529bb9ad05bb06ae08>:0
    (no inner exception)

    31. März 2019 um 13:42 #3865
    ScamZ
    Participant

    Du hast keine Verbindung zur Logo!
    Logocontrol startet deshalb nicht..
    Ports musst du keine freigeben, solange du dich im lokalen Netz befindest.

    Mach das hier nochmal Schritt für Schritt:

    Konfiguration

    die Konfig von Logocontrol sieht dann ungefähr so aus:
    <?xml version=“1.0″ encoding=“utf-8″?>
    <configuration>
    <settings>
    <!– ist eine Logo Offline, startet LogoControl NICHT!! Dann als IP 0.0.0.0 eintragen –>
    <plc id=“Logo1″ type=“Logo8″ ip=“192.168.178.201″ />
    <plc id=“Logo2″ type=“Logo8″ ip=“192.168.178.202″ />
    <plc id=“Logo3″ type=“Logo8″ ip=“192.168.178.203″ />
    <httpWebservice port=“8088″ />
    <httpsWebservice port=“8080″ username=““ passwordHash=““ hashSalt=““ /><!– generate your SHA1 password hash here: http://www.sha1generator.de –>
    <valueTextConverter>

    Grüße

    31. März 2019 um 17:23 #3866
    DonTim
    Participant

    Danke schonmal für die Antwort hab die Config jetzt mal angepasst, so wie du beschrieben hast und alle 3 Logos mit reingenommen.
    Die Serververbindungen im Logoprogramm hatte ich bereits drin. Die libnodave Bibliothek hab ich auch integriert und compiliert. Mit dem Testbefehl:
    ./testISO_TCP 192.168.178.201
    erhalte ich folgendes, was ja erstmal gut aussieht, verbindungstechnisch:
    pi@logocontrol:~/sps $ ./testISO_TCP 192.168.178.201
    Connected.
    Trying to read 64 bytes (16 dwords) from data block 1.
    DB1:DW0: 0
    DB1:DW1: 0
    …
    DB1:DW32: 0
    Trying to read 16 bytes from FW0.
    FD0: 0
    FD4: 0
    FD8: 0
    FD12: 0.000000
    Finished.

    Dieser Test funktioniert mit allen 3 Logos. Daher verstehe ich nicht wieso ich keine Verbindung zu LogoControl bekomme.

    Die Anleitung bin ich bereits mehrfach durchgegangen, was ich genau mit der libnodave zu machen habe, hab ich dann durch sehr mühsames googlen irgendwann rausgefunden. Aktuell hab ich leider keine Idee mehr was ich noch machen kann. Auch die Logos hab ich mehrfach aus und eingeschaltet.

  • Autor
    Beiträge
Log In Register Lost Password
4 Beiträge anzeigen - 1 bis 4 (von insgesamt 4)
  • Du musst angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.
Anmelden
Mit Stolz präsentiert von WordPress
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
immer aktiv
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDauerBeschreibung
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SPEICHERN & AKZEPTIEREN