Steven

Erstellte Forenantworten

9 Beiträge anzeigen - 1 bis 9 (von insgesamt 9)
  • Autor
    Beiträge
  • als Antwort auf: Fehler bei Verbindungsaufbau zu PLC #3527
    Steven
    Teilnehmer

    Also, kurze Geschichte.
    Die ganze Zeit lief noch alles auf ein PI.
    Leider hat er den kompletten Geist aufgegeben. Mein Kumpel wollte dies jetzt auf sein Windows-Server in einer VM laufen lassen, basierend auf Debian (Linux 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64).
    Mono 3.10 drauf, das neue LogoControl drauf und die Config angepasst, da auf dem PI noch das alte LogoControl drauf lief mit der alten Config-Variante.
    Die libnodave.so habe ich direkt von Sourceforge (https://sourceforge.net/projects/libnodave/files/libnodave/) mir geholt, sogar div. andere Versionen. ohne wirklich einen Erfolg zu erzielen.

    Werde langsam ratlos :/ Liegt es evlt. daran, dass das Debian AMD64 ist?

    als Antwort auf: Fehler bei Verbindungsaufbau zu PLC #3525
    Steven
    Teilnehmer

    Hi stpg,
    die Config sieht wie folgt aus:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<settings>
    		<plc id="theLogo" type="Logo8" ip="192.168.192.52" />
    		<httpWebservice port="8088" />
    		<httpsWebservice port="8089" username="xxxx" passwordHash="xxxxx" hashSalt="xxxx" />
    		<valueTextConverter>
    			<textMapping id="an_aus">
    				<!-- Text-Mapping für aus (0) und an (1) -->
    				<valueText value="0" text="aus" />
    				<valueText value="1" text="an" />
    			</textMapping>
    		</valueTextConverter>
    	</settings>
    	<infrastructure>
    		<group name="Aussen">
    			<group name="Aussenbeleuchtung">
    				<device id="10" name="Aussenbeleuchtung" type="light">
    					<attribute id="103" name="Status" plc="theLogo" address="10.3" valueTextConverter="an_aus" />
    					<method id="101" name="on" plc="theLogo" address="10.1" />
    					<method id="102" name="off" plc="theLogo" address="10.2" />
    				</device>
    			</group>
    			<group name="Gartenbeleuchtung">
    				<device id="15" name="Gartenbeleuchtung" type="light">
    					<attribute id="153" name="Status" plc="theLogo" address="15.3" valueTextConverter="an_aus" />
    					<method id="151" name="on" plc="theLogo" address="15.1" />
    					<method id="152" name="off" plc="theLogo" address="15.2" />
    				</device>
    			</group>
    			<group name="Tor">
    				<device id="11" name="Tor" type="light">
    					<attribute id="113" name="Status" plc="theLogo" address="11.3" valueTextConverter="an_aus" />
    					<method id="111" name="on" plc="theLogo" address="11.1" />
    					<method id="112" name="off" plc="theLogo" address="11.2" />
    				</device>
    			</group>
    			<group name="Pumpen">
    				<device id="16" name="Pumpe Tonne" type="light">
    					<attribute id="163" name="Status" plc="theLogo" address="16.3" valueTextConverter="an_aus" />
    					<method id="161" name="on" plc="theLogo" address="16.1" />
    					<method id="162" name="off" plc="theLogo" address="16.2" />
    				</device>
    				<device id="17" name="Pumpe Lauter" type="light">
    					<attribute id="173" name="Status" plc="theLogo" address="17.3" valueTextConverter="an_aus" />
    					<method id="171" name="on" plc="theLogo" address="17.1" />
    					<method id="172" name="off" plc="theLogo" address="17.2" />
    				</device>
    				<device id="18" name="Pumpen Automatik" type="light">
    					<attribute id="183" name="Status" plc="theLogo" address="18.3" valueTextConverter="an_aus" />
    					<method id="181" name="on" plc="theLogo" address="18.1" />
    					<method id="182" name="off" plc="theLogo" address="18.2" />
    				</device>
    			</group>
    		</group>
    		<group name="Keller">
    			<group name="Heizung">
    				<device id="13" name="Heiz Aufladung">
    					<attribute id="133" name="Status" plc="theLogo" address="13.3" valueTextConverter="an_aus" />
    					<method id="131" name="on" plc="theLogo" address="13.1" />
    					<method id="132" name="off" plc="theLogo" address="13.2" />
    				</device>
    			</group>
    		</group>
    		<group name="Klingelanlage">
    			<group name="Klingel">
    				<device id="123" name="Klingel" type="light">
    					<attribute id="12" name="Status" plc="theLogo" address="12.3" valueTextConverter="an_aus" />
    				</device>
    			</group>
    			<group name="Tueroeffner">
    				<device id="143" name="Tueroeffner" type="light">
    					<attribute id="14" name="Status" plc="theLogo" address="14.3" valueTextConverter="an_aus" />
    				</device>
    			</group>
    		</group>
    	</infrastructure>
    </configuration>
    

    Danke & Viele Grüße

    als Antwort auf: REST abfrage mit PHP #3516
    Steven
    Teilnehmer

    Hi,

    verwende statt curl_multi_getcontent lieber file_get_content

    des weiteren
    if($tur1 == "0")

    ersetzen durch
    if($TEST == "0")

    Viele Grüße

    als Antwort auf: LogoControl Prefix #2708
    Steven
    Teilnehmer

    ja, läuft jetzt nach dem deinstallieren von mono 4.2.2 und dem installieren deiner 3.10 + reboot & danach wurde sofort die start.sh ausgeführt und auf mein Port konnte ich sofort zugreifen und das Webinterface betrachten 🙂

    Man sollte eig. meinen, dass mit den neuren Versionen alles besser wird.

    Was ich mich frage, als Du es entwickelt hast, damit das auch unter Linux (Rasp) läuft, war dass zufall das es bei dir ging oder hast du dann rum experimentiert mit welcher version es ggf. gehen könnte?

    Auf jedenfall, Respekt & Danke 🙂

    als Antwort auf: LogoControl Prefix #2706
    Steven
    Teilnehmer

    super, vielen vielen lieben dank, das klappt jetzt alles 🙂
    da kann ich mich ab morgen dann mal an die programmierung machen 🙂

    muss leider ehrlich sagen, habe deine anleitung leider nicht gelesen :/ *sich schäm*

    als Antwort auf: LogoControl Prefix #2704
    Steven
    Teilnehmer

    4.2.2, die aktuelle

    als Antwort auf: LogoControl Prefix #2702
    Steven
    Teilnehmer

    kannst du was damit anfangen?

    
    LogoControl (v0.4.2) is running...
    * Assertion at processes.c:2734, condition -mp- not met
    
    Stacktrace:
    
      at <unknown> <0xffffffff>
      at (wrapper managed-to-native) System.Diagnostics.Process.WaitForExit_internal (System.Diagnostics.Process,intptr,int) <0xffffffff>
      at System.Diagnostics.Process.WaitForExit (int) <0x0022b>
      at System.Diagnostics.Process.WaitForExit () <0x00017>
      at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.WaitForExit () <0xffffffff>
      at LogoControl.Program.Main (string[]) <0x00367>
      at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
    
    Native stacktrace:
    
    Debug info from gdb:
    
    [New LWP 17761]
    [New LWP 17760]
    [New LWP 17759]
    [New LWP 17758]
    [New LWP 17756]
    [New LWP 17755]
    [New LWP 17754]
    [New LWP 17752]
    [New LWP 17751]
    [New LWP 17750]
    [New LWP 17749]
    [New LWP 17748]
    [New LWP 17747]
    [New LWP 17746]
    [New LWP 17745]
    [New LWP 17744]
    [New LWP 17743]
    [New LWP 17742]
    [New LWP 17741]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
    0x76e29ee8 in __libc_waitpid (pid=17753, stat_loc=0x7e96ea74, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
    40	../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
      Id   Target Id         Frame 
      20   Thread 0x763ff430 (LWP 17741) "mono" 0x76e257a4 in __pthread_cond_wait (cond=0x235420, mutex=0x235408) at pthread_cond_wait.c:187
      19   Thread 0x76a57430 (LWP 17742) "Finalizer" 0x76e27a40 in do_futex_wait (isem=isem@entry=0x22a58c) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
      18   Thread 0x740ff430 (LWP 17743) "Timer-Scheduler" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150a790, mutex=0x150a774, abstime=0x740fe538) at pthread_cond_timedwait.c:199
      17   Thread 0x74a3a430 (LWP 17744) "Timer-Scheduler" 0x76d8b774 in __clock_nanosleep (clock_id=1, flags=1, req=0x74a39d58, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:46
      16   Thread 0x738ff430 (LWP 17745) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150b6f8, mutex=0x150b6dc, abstime=0x738fe030) at pthread_cond_timedwait.c:199
      15   Thread 0x737ff430 (LWP 17746) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150bb38, mutex=0x150bb1c, abstime=0x737fded0) at pthread_cond_timedwait.c:199
      14   Thread 0x73f25430 (LWP 17747) "mono" 0x76d73c80 in poll () at ../sysdeps/unix/syscall-template.S:81
      13   Thread 0x732ff430 (LWP 17748) "mono" 0x76e257a4 in __pthread_cond_wait (cond=0x150af88, mutex=0x150af6c) at pthread_cond_wait.c:187
      12   Thread 0x731ff430 (LWP 17749) "mono" 0x76e257a4 in __pthread_cond_wait (cond=0x150b450, mutex=0x150b434) at pthread_cond_wait.c:187
      11   Thread 0x72fff430 (LWP 17750) "mono" 0x76e257a4 in __pthread_cond_wait (cond=0x150ba28, mutex=0x150ba0c) at pthread_cond_wait.c:187
      10   Thread 0x72eff430 (LWP 17751) "mono" 0x76e257a4 in __pthread_cond_wait (cond=0x150be68, mutex=0x150be4c) at pthread_cond_wait.c:187
      9    Thread 0x72dff430 (LWP 17752) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150b560, mutex=0x150b544, abstime=0x72dfded0) at pthread_cond_timedwait.c:199
      8    Thread 0x72cff430 (LWP 17754) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150b098, mutex=0x150b07c, abstime=0x72cfded0) at pthread_cond_timedwait.c:199
      7    Thread 0x72bff430 (LWP 17755) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150ad68, mutex=0x150ad4c, abstime=0x72bfe030) at pthread_cond_timedwait.c:199
      6    Thread 0x72aff430 (LWP 17756) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150bf78, mutex=0x150bf5c, abstime=0x72afded0) at pthread_cond_timedwait.c:199
      5    Thread 0x729ff430 (LWP 17758) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150ac58, mutex=0x150ac3c, abstime=0x729fe030) at pthread_cond_timedwait.c:199
      4    Thread 0x728ff430 (LWP 17759) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x150b808, mutex=0x150b7ec, abstime=0x728fe030) at pthread_cond_timedwait.c:199
      3    Thread 0x727ff430 (LWP 17760) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x727fed60, mutex=0x1594d4c, abstime=0x727fed20) at pthread_cond_timedwait.c:199
      2    Thread 0x726ff430 (LWP 17761) "Threadpool work" 0x76e25b30 in __pthread_cond_timedwait (cond=0x726fed60, mutex=0x1594d4c, abstime=0x726fed20) at pthread_cond_timedwait.c:199
    * 1    Thread 0x76f39000 (LWP 17740) "mono" 0x76e29ee8 in __libc_waitpid (pid=17753, stat_loc=0x7e96ea74, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
    
    Thread 20 (Thread 0x763ff430 (LWP 17741)):
    #0  0x76e257a4 in __pthread_cond_wait (cond=0x235420, mutex=0x235408) at pthread_cond_wait.c:187
    #1  0x001468a8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 19 (Thread 0x76a57430 (LWP 17742)):
    #0  0x76e27a40 in do_futex_wait (isem=isem@entry=0x22a58c) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
    #1  0x76e27af4 in __new_sem_wait (sem=0x22a58c) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:69
    #2  0x0015f164 in mono_sem_wait ()
    #3  0x0010d90c in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 18 (Thread 0x740ff430 (LWP 17743)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150a790, mutex=0x150a774, abstime=0x740fe538) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 17 (Thread 0x74a3a430 (LWP 17744)):
    #0  0x76d8b774 in __clock_nanosleep (clock_id=1, flags=1, req=0x74a39d58, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:46
    #1  0x00156cc2 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 16 (Thread 0x738ff430 (LWP 17745)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150b6f8, mutex=0x150b6dc, abstime=0x738fe030) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 15 (Thread 0x737ff430 (LWP 17746)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150bb38, mutex=0x150bb1c, abstime=0x737fded0) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 14 (Thread 0x73f25430 (LWP 17747)):
    #0  0x76d73c80 in poll () at ../sysdeps/unix/syscall-template.S:81
    #1  0x000fe4de in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 13 (Thread 0x732ff430 (LWP 17748)):
    #0  0x76e257a4 in __pthread_cond_wait (cond=0x150af88, mutex=0x150af6c) at pthread_cond_wait.c:187
    #1  0x0014a676 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 12 (Thread 0x731ff430 (LWP 17749)):
    #0  0x76e257a4 in __pthread_cond_wait (cond=0x150b450, mutex=0x150b434) at pthread_cond_wait.c:187
    #1  0x0014a676 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 11 (Thread 0x72fff430 (LWP 17750)):
    #0  0x76e257a4 in __pthread_cond_wait (cond=0x150ba28, mutex=0x150ba0c) at pthread_cond_wait.c:187
    #1  0x0014a676 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 10 (Thread 0x72eff430 (LWP 17751)):
    #0  0x76e257a4 in __pthread_cond_wait (cond=0x150be68, mutex=0x150be4c) at pthread_cond_wait.c:187
    #1  0x0014a676 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 9 (Thread 0x72dff430 (LWP 17752)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150b560, mutex=0x150b544, abstime=0x72dfded0) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 8 (Thread 0x72cff430 (LWP 17754)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150b098, mutex=0x150b07c, abstime=0x72cfded0) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 7 (Thread 0x72bff430 (LWP 17755)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150ad68, mutex=0x150ad4c, abstime=0x72bfe030) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 6 (Thread 0x72aff430 (LWP 17756)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150bf78, mutex=0x150bf5c, abstime=0x72afded0) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 5 (Thread 0x729ff430 (LWP 17758)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150ac58, mutex=0x150ac3c, abstime=0x729fe030) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 4 (Thread 0x728ff430 (LWP 17759)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x150b808, mutex=0x150b7ec, abstime=0x728fe030) at pthread_cond_timedwait.c:199
    #1  0x0014a5f8 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 3 (Thread 0x727ff430 (LWP 17760)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x727fed60, mutex=0x1594d4c, abstime=0x727fed20) at pthread_cond_timedwait.c:199
    #1  0x0015d818 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 2 (Thread 0x726ff430 (LWP 17761)):
    #0  0x76e25b30 in __pthread_cond_timedwait (cond=0x726fed60, mutex=0x1594d4c, abstime=0x726fed20) at pthread_cond_timedwait.c:199
    #1  0x0015d818 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    Thread 1 (Thread 0x76f39000 (LWP 17740)):
    #0  0x76e29ee8 in __libc_waitpid (pid=17753, stat_loc=0x7e96ea74, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
    #1  0x0007a328 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
    =================================================================
    Got a SIGABRT while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries 
    used by your application.
    =================================================================
    
    Aborted
    2016-03-13 10:25:34 Service crashed with exit code 134. Restarting...
    
    als Antwort auf: LogoControl Prefix #2701
    Steven
    Teilnehmer

    dank dir,
    ja, leider ist der angegebene Port 9080 noch frei :/
    Jessie läuft drauf, zu installieren & konfigurieren von software benutz ich den pi benutzer. Ich hoffe, dass er Rechte hat, Ports zu öffnen

    als Antwort auf: LogoControl Prefix #2699
    Steven
    Teilnehmer

    Hi,
    ja auf 8080 läuft openHAB,
    habe vornherein den Port für LogoControl auf 9080 abgeändert.
    Andere Ports habe ich ebenfalls schon ausprobiert, aber leider mit dem gleichen Ergebnis :/

9 Beiträge anzeigen - 1 bis 9 (von insgesamt 9)