+ Antworten
Seite 31 von 31 ErsteErste ... 21 29 30 31
Ergebnis 301 bis 306 von 306
  1. #301
    Registriert seit
    Aug 2014
    Beiträge
    367

    Sollte der Wert 21,6 ausgeben?
    Bitte mal noch den Entsprechen log vom SerialPort modul hier posten.

    Swen
    Geändert von Acer90 (24.11.18 um 20:58 Uhr)
    @I3 6100T, 16GB RAM, 2x SAMSUNG 850 SSD, Windows Server 2016 Essentials; 2xHP Procurve Network Switch(one with POE+); 4xRaspberry Pi Zero; 1xPi 2; 1xPi 3; IP Network Cams; Homematic YAHM on Pi 3; Osram Lightify; mehr Geräte folgen

  2. #302
    Registriert seit
    Apr 2014
    Ort
    Velden am Wörthersee
    Beiträge
    269

    nein der Wert ist ima so ca zwischen 40 und 51

    jetzt beim auslessen solte er 50,7 sein
    variable 15414

    Serial Port
    Code:
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | <SOH><NUL>
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | 01 00 
    TXT: 24.11.2018, 21:37:20 |             TRANSMIT | ÷<LF><STX><ETX>
    HEX: 24.11.2018, 21:37:20 |             TRANSMIT | F7 0A 02 03 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | ×<NUL>
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | D7 00 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | <NUL>
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | 00 
    TXT: 24.11.2018, 21:37:20 |             TRANSMIT | ÷<SOH>Á<EOT>
    HEX: 24.11.2018, 21:37:20 |             TRANSMIT | F7 01 C1 04 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | ÿ
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | FF 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | ÿÿÿ
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | FF FF FF 
    TXT: 24.11.2018, 21:37:20 |             TRANSMIT | ÷<LF><NUL><ETX>
    HEX: 24.11.2018, 21:37:20 |             TRANSMIT | F7 0A 00 03 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | †<NUL>
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | 86 00 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | <NUL>
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | 00 
    TXT: 24.11.2018, 21:37:20 |             TRANSMIT | ÷<LF><EOT><ETX>
    HEX: 24.11.2018, 21:37:20 |             TRANSMIT | F7 0A 04 03 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | U
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | 55 
    TXT: 24.11.2018, 21:37:20 |             RECEIVED | <NUL><NUL>
    HEX: 24.11.2018, 21:37:20 |             RECEIVED | 00 00 
    TXT: 24.11.2018, 21:37:20 |             TRANSMIT | ÷<EOT><SOH>
    HEX: 24.11.2018, 21:37:20 |             TRANSMIT | F7 04 8D 01 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | <SOH>
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 01 
    TXT: 24.11.2018, 21:37:21 |             TRANSMIT | ÷<SOH>Í<ETX>
    HEX: 24.11.2018, 21:37:21 |             TRANSMIT | F7 01 CD 03 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | û
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | FB 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | <SOH>@
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 01 40 
    TXT: 24.11.2018, 21:37:21 |             TRANSMIT | ÷<SOH>Ã<ETX>
    HEX: 24.11.2018, 21:37:21 |             TRANSMIT | F7 01 C3 03 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | e
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 65 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | <NUL><NUL>
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 00 00 
    TXT: 24.11.2018, 21:37:21 |             TRANSMIT | ÷<LF><ETX><ETX>
    HEX: 24.11.2018, 21:37:21 |             TRANSMIT | F7 0A 03 03 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | ‘<NUL>
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 91 00 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | <NUL>
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 00 
    TXT: 24.11.2018, 21:37:21 |             TRANSMIT | ÷<EOT>€<SOH>
    HEX: 24.11.2018, 21:37:21 |             TRANSMIT | F7 04 80 01 
    TXT: 24.11.2018, 21:37:21 |             RECEIVED | <NUL>
    HEX: 24.11.2018, 21:37:21 |             RECEIVED | 00 
    TXT: 24.11.2018, 21:37:24 |             RECEIVED | <ENQ>
    HEX: 24.11.2018, 21:37:24 |             RECEIVED | 05 
    TXT: 24.11.2018, 21:37:26 |             RECEIVED | <ENQ>
    HEX: 24.11.2018, 21:37:26 |             RECEIVED | 05
    Code:
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:20 |        R-3.Last Data | {"hex":"F70A00","length":"03","retrun_data":false,"value":"","ips_id":12184,"convert":"10"}
    HEX: 24.11.2018, 21:37:20 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 41 30 30 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 31 32 31 38 34 2C 22 63 6F 6E 76 65 72 74 22 3A 22 31 30 22 7D 
    TXT: 24.11.2018, 21:37:20 |  R-4.FullReceiveData | 860000
    HEX: 24.11.2018, 21:37:20 |  R-4.FullReceiveData | 38 36 30 30 30 30 
    TXT: 24.11.2018, 21:37:20 |             Send Hex | F70A0403
    HEX: 24.11.2018, 21:37:20 |             Send Hex | 46 37 30 41 30 34 30 33 
    TXT: 24.11.2018, 21:37:20 |       Set-Var(12184) | 13,4
    HEX: 24.11.2018, 21:37:20 |       Set-Var(12184) | 31 33 2C 34 
    TXT: 24.11.2018, 21:37:20 |    GetDataFromSerial | 55
    HEX: 24.11.2018, 21:37:20 |    GetDataFromSerial | 35 35 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-7896
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 37 38 39 36 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-8277
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 32 37 37 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-84077
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 34 30 37 37 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:20 |        R-3.Last Data | {"hex":"F70A04","length":"03","retrun_data":false,"value":"","ips_id":55975,"convert":""}
    HEX: 24.11.2018, 21:37:20 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 41 30 34 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 35 35 39 37 35 2C 22 63 6F 6E 76 65 72 74 22 3A 22 22 7D 
    TXT: 24.11.2018, 21:37:20 |    GetDataFromSerial | 0000
    HEX: 24.11.2018, 21:37:20 |    GetDataFromSerial | 30 30 30 30 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-7896
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 37 38 39 36 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-8277
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 32 37 37 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-84077
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 34 30 37 37 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | Data
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 44 61 74 61 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:20 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:20 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:20 |        R-3.Last Data | {"hex":"F70A04","length":"03","retrun_data":false,"value":"","ips_id":55975,"convert":""}
    HEX: 24.11.2018, 21:37:20 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 41 30 34 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 35 35 39 37 35 2C 22 63 6F 6E 76 65 72 74 22 3A 22 22 7D 
    TXT: 24.11.2018, 21:37:20 |  R-4.FullReceiveData | 550000
    HEX: 24.11.2018, 21:37:20 |  R-4.FullReceiveData | 35 35 30 30 30 30 
    TXT: 24.11.2018, 21:37:20 |             Send Hex | F7048D01
    HEX: 24.11.2018, 21:37:20 |             Send Hex | 46 37 30 34 38 44 30 31 
    TXT: 24.11.2018, 21:37:20 |       Set-Var(55975) | 85
    HEX: 24.11.2018, 21:37:20 |       Set-Var(55975) | 38 35 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 01
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 30 31 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-8277
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 32 37 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-84077
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 34 30 37 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F7048D","length":"01","retrun_data":false,"value":"","ips_id":15521,"convert":""}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 34 38 44 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 31 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 31 35 35 32 31 2C 22 63 6F 6E 76 65 72 74 22 3A 22 22 7D 
    TXT: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 01
    HEX: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 30 31 
    TXT: 24.11.2018, 21:37:21 |             Send Hex | F701CD03
    HEX: 24.11.2018, 21:37:21 |             Send Hex | 46 37 30 31 43 44 30 33 
    TXT: 24.11.2018, 21:37:21 |       Set-Var(15521) | 1
    HEX: 24.11.2018, 21:37:21 |       Set-Var(15521) | 31 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | FB
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 46 42 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-84077
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 34 30 37 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F701CD","length":"03","retrun_data":false,"value":"","ips_id":15414,"convert":""}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 31 43 44 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 31 35 34 31 34 2C 22 63 6F 6E 76 65 72 74 22 3A 22 22 7D 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 0140
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 30 31 34 30 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-84077
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 38 34 30 37 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Data
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 44 61 74 61 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F701CD","length":"03","retrun_data":false,"value":"","ips_id":15414,"convert":""}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 31 43 44 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 31 35 34 31 34 2C 22 63 6F 6E 76 65 72 74 22 3A 22 22 7D 
    TXT: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | FB0140
    HEX: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 46 42 30 31 34 30 
    TXT: 24.11.2018, 21:37:21 |             Send Hex | F701C303
    HEX: 24.11.2018, 21:37:21 |             Send Hex | 46 37 30 31 43 33 30 33 
    TXT: 24.11.2018, 21:37:21 |       Set-Var(15414) | 4194811
    HEX: 24.11.2018, 21:37:21 |       Set-Var(15414) | 34 31 39 34 38 31 31 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 65
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 36 35 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F701C3","length":"03","retrun_data":false,"value":"","ips_id":48521,"convert":"10"}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 31 43 33 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 34 38 35 32 31 2C 22 63 6F 6E 76 65 72 74 22 3A 22 31 30 22 7D 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 0000
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 30 30 30 30 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-90268
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 30 32 36 38 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Data
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 44 61 74 61 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F701C3","length":"03","retrun_data":false,"value":"","ips_id":48521,"convert":"10"}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 31 43 33 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 34 38 35 32 31 2C 22 63 6F 6E 76 65 72 74 22 3A 22 31 30 22 7D 
    TXT: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 650000
    HEX: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 36 35 30 30 30 30 
    TXT: 24.11.2018, 21:37:21 |             Send Hex | F70A0303
    HEX: 24.11.2018, 21:37:21 |             Send Hex | 46 37 30 41 30 33 30 33 
    TXT: 24.11.2018, 21:37:21 |       Set-Var(48521) | 10,1
    HEX: 24.11.2018, 21:37:21 |       Set-Var(48521) | 31 30 2C 31 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 9100
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 39 31 30 30 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F70A03","length":"03","retrun_data":false,"value":"","ips_id":19024,"convert":"10"}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 41 30 33 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 31 39 30 32 34 2C 22 63 6F 6E 76 65 72 74 22 3A 22 31 30 22 7D 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 00
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 30 30 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | 1543091839-94917
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 31 35 34 33 30 39 31 38 33 39 2D 39 34 39 31 37 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Data
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 44 61 74 61 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F70A03","length":"03","retrun_data":false,"value":"","ips_id":19024,"convert":"10"}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 41 30 33 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 33 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 31 39 30 32 34 2C 22 63 6F 6E 76 65 72 74 22 3A 22 31 30 22 7D 
    TXT: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 910000
    HEX: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 39 31 30 30 30 30 
    TXT: 24.11.2018, 21:37:21 |             Send Hex | F7048001
    HEX: 24.11.2018, 21:37:21 |             Send Hex | 46 37 30 34 38 30 30 31 
    TXT: 24.11.2018, 21:37:21 |       Set-Var(19024) | 14,5
    HEX: 24.11.2018, 21:37:21 |       Set-Var(19024) | 31 34 2C 35 
    TXT: 24.11.2018, 21:37:21 |    GetDataFromSerial | 00
    HEX: 24.11.2018, 21:37:21 |    GetDataFromSerial | 30 30 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Last
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 4C 61 73 74 
    TXT: 24.11.2018, 21:37:21 |         2.Bufferdata | Return
    HEX: 24.11.2018, 21:37:21 |         2.Bufferdata | 52 65 74 75 72 6E 
    TXT: 24.11.2018, 21:37:21 |        R-3.Last Data | {"hex":"F70480","length":"01","retrun_data":false,"value":"","ips_id":28667,"convert":""}
    HEX: 24.11.2018, 21:37:21 |        R-3.Last Data | 7B 22 68 65 78 22 3A 22 46 37 30 34 38 30 22 2C 22 6C 65 6E 67 74 68 22 3A 22 30 31 22 2C 22 72 65 74 72 75 6E 5F 64 61 74 61 22 3A 66 61 6C 73 65 2C 22 76 61 6C 75 65 22 3A 22 22 2C 22 69 70 73 5F 69 64 22 3A 32 38 36 36 37 2C 22 63 6F 6E 76 65 72 74 22 3A 22 22 7D 
    TXT: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 00
    HEX: 24.11.2018, 21:37:21 |  R-4.FullReceiveData | 30 30 
    TXT: 24.11.2018, 21:37:21 |       Set-Var(28667) | 0
    HEX: 24.11.2018, 21:37:21 |       Set-Var(28667) | 30

  3. #303
    Registriert seit
    Aug 2014
    Beiträge
    367

    also:

    HEX: 24.11.2018, 21:37:21 | TRANSMIT | F7 01 CD 03
    TXT: 24.11.2018, 21:37:21 | RECEIVED | û
    HEX: 24.11.2018, 21:37:21 | RECEIVED | FB
    TXT: 24.11.2018, 21:37:21 | RECEIVED | <SOH>@
    HEX: 24.11.2018, 21:37:21 | RECEIVED | 01 40
    Oben siehst du was zurück kommen, in dem Fall sendet die Anlage 01 40 zurück.


    Welche länge hast du eingestellt, 2 Bytes oder 3 Bytes?
    Sollten eigentlich 3 Bytes sein, probiere das mal bitte.
    Und kannst du mir bitte mal schreiben wo du die HexAdresse 01CD her hast, gibt es dazu noch eine Referenz(Bytes, FOrmat, usw)

    Swen
    Geändert von Acer90 (25.11.18 um 14:22 Uhr)
    @I3 6100T, 16GB RAM, 2x SAMSUNG 850 SSD, Windows Server 2016 Essentials; 2xHP Procurve Network Switch(one with POE+); 4xRaspberry Pi Zero; 1xPi 2; 1xPi 3; IP Network Cams; Homematic YAHM on Pi 3; Osram Lightify; mehr Geräte folgen

  4. #304
    Registriert seit
    Apr 2014
    Ort
    Velden am Wörthersee
    Beiträge
    269

    Hallo
    verwende 3 Bytes
    Habe 01CD aus der Datenpunktliste meiner Heizung, verwende das schon bei einen anderen Skript zum auslessen der Heizung würde aber gern auf das Modul umsteigen da es die Werte schneller auslessen kann und einfacher ist.
    Geht soweit auch alles auslessen mit dem Modul nur eben diese Adresse nicht
    gruß Stefa

  5. #305
    Registriert seit
    Aug 2014
    Beiträge
    367

    Zitat Zitat von somm Beitrag anzeigen
    Hallo
    verwende 3 Bytes
    Habe 01CD aus der Datenpunktliste meiner Heizung, verwende das schon bei einen anderen Skript zum auslessen der Heizung würde aber gern auf das Modul umsteigen da es die Werte schneller auslessen kann und einfacher ist.
    Geht soweit auch alles auslessen mit dem Modul nur eben diese Adresse nicht
    gruß Stefa
    Ok, das Problem was ich derzeit sehe, ist das nur 2 Bytes ankommen. Wenn du öfters den Wert abrufst, kommen dann auch ab und zu mal 3 Bytes an oder sind es immer nur 2 die Zurück kommen?
    Und bei welchen Skript funktioniert dieser Wert?

    Swen
    @I3 6100T, 16GB RAM, 2x SAMSUNG 850 SSD, Windows Server 2016 Essentials; 2xHP Procurve Network Switch(one with POE+); 4xRaspberry Pi Zero; 1xPi 2; 1xPi 3; IP Network Cams; Homematic YAHM on Pi 3; Osram Lightify; mehr Geräte folgen

  6. #306
    Registriert seit
    Apr 2014
    Ort
    Velden am Wörthersee
    Beiträge
    269

    Kommt eigentlich immer das selbe heraus
    verwende diese skripte:

    PHP-Code:
    <device id="204B" description="VVBC702-AW" protocol="KW1">
      <
    modes>
        <
    mode id='0' description='Abschaltbetrieb' />
        <
    mode id='1' description='Warmwasser' />
        <
    mode id='2' description='Warmwasser + Heizung' />
      </
    modes>
      <
    commands>
        <
    command name='SollTempRaum' action='ReadOnly'>
          <
    address>2000</address>
          <
    length>2</length>
          <
    description>SollTempRaum</description>
          <
    format>Temperature10</format>
        </
    command>
        <
    command name='NiveauderHeizkennlinie' action='ReadOnly'>
          <
    address>2006</address>
          <
    length>2</length>
          <
    description>NiveauderHeizkennlinie</description>
          <
    format>Temperature10</format>
        </
    command>
        <
    command name='NeigungderHeizkennlinie' action='ReadOnly'>
          <
    address>2007</address>
          <
    length>2</length>
          <
    description>NeigungderHeizkennlinie</description>
          <
    format>Temperature10</format>
        </
    command>
        <
    command name='BetriebsartHeizung' action='ReadOnly'>
          <
    address>B000</address>
          <
    length>2</length>
          <
    description>BetriebsartHeizung</description>
          <
    format>Counter</format>
        </
    command>
        <
    command name='Warmwassertemperaturoben' action='ReadOnly'>
          <
    address>01CD</address>
          <
    length>3</length>
          <
    description>Warmwassertemperaturoben</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='VorlauftemperaturPrimaerquelle' action='ReadOnly'>
          <
    address>01C3</address>
          <
    length>3</length>
          <
    description>VorlauftemperaturPrimaerquelle</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='RuecklauftemperaturSekundaer' action='ReadOnly'>
          <
    address>01C6</address>
          <
    length>3</length>
          <
    description>RuecklauftemperaturSekundaer</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='VorlauftemperaturSekundaer' action='ReadOnly'>
          <
    address>01C5</address>
          <
    length>3</length>
          <
    description>VorlauftemperaturSekundaer</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='BetriebsartLueftung' action='ReadOnly'>
          <
    address>B005</address>
          <
    length>2</length>
          <
    description>BetriebsartLueftung</description>
          <
    format>Counter</format>
        </
    command
        <
    command name='luftungablufttemperautr' action='ReadOnly'>
          <
    address>0A02</address>
          <
    length>3</length>
          <
    description>luftungablufttemperautr</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='luftungzulufttemperatur' action='ReadOnly'>
          <
    address>0A01</address>
          <
    length>3</length>
          <
    description>luftungzulufttemperatur</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='luftungforttemperatur' action='ReadOnly'>
          <
    address>0A03</address>
          <
    length>3</length>
          <
    description>luftungforttemperatur</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='luftungaussentemperatur' action='ReadOnly'>
          <
    address>0A00</address>
          <
    length>3</length>
          <
    description>luftungaussentemperatur</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='fortluftvolumenstrom' action='ReadOnly'>
          <
    address>0A05</address>
          <
    length>3</length>
          <
    description>fortluftvolumenstrom</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='zuluftvolumenstrom' action='ReadOnly'>
          <
    address>0A04</address>
          <
    length>3</length>
          <
    description>zuluftvolumenstrom</description>
          <
    format>Temperatur1</format>
        </
    command>
        <
    command name='Ventil Heizen/WW' action='ReadOnly'>
          <
    address>0494</address>
          <
    length>1</length>
          <
    description>Ventil Heizen/WW</description>
          <
    format>Boolean</format>
        </
    command
        <
    command name='Heizkreispumpe' action='ReadOnly'>
          <
    address>048D</address>
          <
    length>1</length>
          <
    description>Heizkreispumpe</description>
          <
    format>Boolean</format>
        </
    command>
        <
    command name='Primärpumpe' action='ReadOnly'>
          <
    address>0482</address>
          <
    length>1</length>
          <
    description>Primärpumpe</description>
          <
    format>Boolean</format>
        </
    command>
        <
    command name='Verdichter' action='ReadOnly'>
          <
    address>0480</address>
          <
    length>1</length>
          <
    description>Verdichter</description>
          <
    format>Boolean</format>
        </
    command>
    </
    commands>

    </
    device
    PHP-Code:
    <?
      
    include( "ViessmannVariables.inc.php");

      
    // Constants
      
    define"VIESSMANN_PING",             chr(0x05) );
      
    define"VIESSMANN_KW_READ_PRAEFIX",  chr(0x01).chr(0xF7) );
      
    define"VIESSMANN_KW_WRITE_PRAEFIX"chr(0x01).chr(0xF4) );

      
    // init variables
      
    $CurrentAction   ""$CurrentProtocol ""$CurrentCommand  "";
      
    $CurrentLength   ""$CurrentSetValue "";
      
      
    $ViessmannDeviceID GetValueStringVIESSMANN_VARIABLE_DEVICE );

      
    // get current Command if available or determine Device ID automatically
      
    $Command GetValueStringVIESSMANN_VARIABLE_COMMAND );
      if ( 
    $ViessmannDeviceID == "" AND strlen$Command ) == )
      { 
         
    $Command "R:KW:00F8:2: "// retrieve Device ID
         
    SetValueStringVIESSMANN_DEVICE_COMMAND$Command );
      }

      if ( 
    $Command != "" )
      {
        
    $CommandArray explode(":"$Command);
        
    $parts count$CommandArray );
        if ( 
    $parts $CurrentAction   $CommandArray[0];
        if ( 
    $parts $CurrentProtocol $CommandArray[1];
        if ( 
    $parts $CurrentAddress  $CommandArray[2];
        if ( 
    $parts $CurrentLength   $CommandArray[3];
        if ( 
    $parts $CurrentSetValue $CommandArray[4];
      }

      
    // Get remaining data in the com port via the buffer of the register variable
      
    $ComData RegVar_GetBufferVIESSMANN_VARIABLE_REGISTER );
      
    // and merge it together with the passed data
      
    $ComData .= $IPS_VALUE;
    echo 
    $CurrentAction."-";
    if (
    $ComData == VIESSMANN_PING ) echo "Ping"; else echo strlen$ComData );
      
    // Process Com Data ----------------------------------------------------------
      
    if (   $ComData == VIESSMANN_PING AND
             ( 
    $CurrentAction == "R" OR $CurrentAction == "W" ) )
      { 
        
    // No data expected (Command available), so execute command if available

        // Check, if expected Action and Command capabilities fit

        // Prepare Command Address + Length
        
    $Address =  chr(hexdec(substr($CurrentAddress,0,2)));
        
    $Address .= chr(hexdec(substr($CurrentAddress,2,2)));
        switch ( 
    $CurrentAction )
        {
          case 
    "R"// Read
            
    $CommandString VIESSMANN_KW_READ_PRAEFIX.$Address.chr($CurrentLength);
            
    $Command[0] = "-"// Mark Command as executed
            
    break;
          case 
    "W"// Write
            
    $CommandString VIESSMANN_KW_WRITE_PRAEFIX.$Address.chr($CurrentLength).$CurrentSetValue;
            
    $Command ""// Clear command
            
    break;
          default:
            
    $CommandString "";
            break;
        }
        if ( 
    $CommandString != "" )
        {
          
    SetValueStringVIESSMANN_VARIABLE_COMMAND$Command );
           
    // Clear current result
          
    SetValueStringVIESSMANN_VARIABLE_RESULT"" );
            
    // Send command to Viessmann heating device via COM Port
            
    COMPort_SendTextVIESSMANN_VARIABLE_COMPORT$CommandString );
        }
      }
      else
      {
          if ( 
    $CurrentAction == "-" and strlen$ComData ) >= $CurrentLength )
          {
              
    // Com Data is equal or longer as needed
              
    $Result substr$ComData0$CurrentLength );
              
    // Set Result in IPS Variable
            
    SetValueStringVIESSMANN_VARIABLE_RESULT$Result );
            
            
    // if Device ID is initial and command was to retrieve device ID
            
    if ( $ViessmannDeviceID == "" AND $Command == "-:KW:00F8:2: " )
            {
                 
    // set device ID
                 
    $DeviceID "";
              for( 
    $x=0$x strlen($Result); $x++)
              {
                if ( 
    ord($Result[$x]) < 10 $DeviceID .= "0";
                
    $DeviceID .= strtoupper(dechex(ord($Result[$x])));
              }
              
    SetValueStringVIESSMANN_VARIABLE_DEVICE$DeviceID );
            }
            
            
    // clear command and remaining buffer of register variable
                
    SetValueStringVIESSMANN_VARIABLE_COMMAND"" );
            
    RegVar_SetBufferVIESSMANN_VARIABLE_REGISTER"" );
          }
          else
          {
            
    // as a result is expected and the current length of data is not
            // sufficient, write the data back to the buffer of the register var
            
    if ( $Command != "" AND $CurrentAction == "-" )
              
    RegVar_SetBufferVIESSMANN_VARIABLE_REGISTER$ComData);
              else
                
    RegVar_SetBufferVIESSMANN_VARIABLE_REGISTER"");
        }

      }
    ?>
    PHP-Code:
    <?
      
    // Constant definition for processing ----------------------------------------
      
    define"VIESSMANN_GERAETEKENNUNG",   chr(0x00).chr(0xF8) );

      include( 
    "ViessmannVariables.inc.php");

      
    // Get XML
      
    $ViessmannDeviceID GetValueStringVIESSMANN_VARIABLE_DEVICE );
      
    $DeviceXMLName IPS_GetKernelDir()."scripts\\ViessmannDevice".$ViessmannDeviceID.".xml";
      try
      {
        
    $ViessmannDeviceXML simplexml_load_file$DeviceXMLName );
      }
      catch (
    Exception $e)
      {
        
    $ViessmannDeviceXML "";
      }

      function 
    ViessmannGetCommand$Command )
      {
        
    $CommandData = array();

        global 
    $ViessmannDeviceXML;
        if ( !isset( 
    $ViessmannDeviceXML ) OR $ViessmannDeviceXML == "" )
          return 
    false;

        
    $CommandData["deviceid"] = $ViessmannDeviceXML["id"];
        
    $CommandData["protocol"] = $ViessmannDeviceXML["protocol"];

        
    // Get Command details
        
    $ViessmannDeviceCommands $ViessmannDeviceXML->commands[0];

        foreach(
    $ViessmannDeviceXML->commands[0] as $a => $XMLCommand )
        {
          if ( 
    $XMLCommand["name"] == $Command )
          {
            
    $CommandData["name"]        = $Command;
            
    $CommandData["action"]      = $XMLCommand["action"];
            
    $CommandData["address"]     = $XMLCommand->address[0];
            
    $CommandData["length"]      = $XMLCommand->length[0];
            
    $CommandData["description"] = $XMLCommand->description[0];
            
    $CommandData["format"]      = $XMLCommand->format[0];
            break; 
    // for
          
    }
        }
        if ( isset( 
    $CommandData["name"] ) )
          return 
    $CommandData;
        else
          return 
    false;
      }

      function 
    ViessmannResultToHexDisplay$Result )
      {
        
    $ResultConv "";
        for( 
    $x=0$x strlen($Result); $x++)
        {
          if ( 
    ord($Result[$x]) < 10 $ResultConv .= "0";
          
    $ResultConv .= strtoupper(dechex(ord($Result[$x])));
        }
        return 
    $ResultConv;
      }

      function 
    ViessmannConvertData$Command$Data )
      {
          global 
    $ViessmannDeviceID;
          
    $ViessmannCommand ViessmannGetCommand$Command$ViessmannDeviceID );
          if ( 
    $ViessmannCommand === false ) return false;
          
    $Format $ViessmannCommand["format"];
      
          switch( 
    $Format )
          {
               case 
    "Boolean":
                if ( 
    ord$Data[0] ) == )
                   return 
    false;
                   else
                       return 
    true;
                  break;
              case 
    "Temperature10":
                  
    $lowByte ord$Data[0] );
                  
    $highByte ord$Data[1] );
                  return (( 
    $highByte 256 ) + $lowByte ) / 10;
                  break;
              case 
    "Temperature100":
                  
    $lowByte ord$Data[0] );
                  
    $highByte ord$Data[1] );
                  return (( 
    $highByte 256 ) + $lowByte ) / 100;
                  break;
              case 
    "Count" or "Mode":
                  
    $Count 0;
                  
    $HexString ViessmannResultToHexDisplay$Data );
                  for ( 
    $x=0$x strlen$Data ); $x=$x+)
                  {
                     
    $hex substr$HexString$x,);
                     
    $dec hexdec$hex );
                     switch ( 
    $x )
                     {
                        case 
    0:
                          
    $Count $Count $dec;
                          break;
                        case 
    2:
                          
    $Count $Count + ( $dec 256 );
                          break;
                        case 
    4:
                          
    $Count $Count + ( $dec 65536 );
                          break;
                        case 
    6:
                          
    $Count $Count + ( $dec 16777216 );
                          break;
                        default:
                          break;
                    }
                  }
                  return 
    $Count;
                  break;
                case 
    "BooleanPercent":
                  return 
    "BOOLEANPERCENT convertion not coded yet.";
                  break;
                case 
    "Triple":
                  return 
    "TRIPLE convertion not coded yet.";
                  break;
                case 
    "Mode":
                  return 
    hexdec(ord($Data[0]));
                  break;
               case 
    "ControlID":
                 
    $Result "";
               for( 
    $x=0$x strlen($Data); $x++)
               {
                 if ( 
    ord($Data[$x]) < 10 $Result .= "0";
                 
    $Result .= strtoupper(dechex(ord($Data[$x])));
               }
               return 
    $Result;
               break;
                 default:
                  return 
    "";
                  break;
            }
            return 
    $ConvertedResult;
      }
      
    function 
    ViessmannGetData$Command )
      {
         
    $Run 1// Maximum time a recheck is done, if Ping (0x05 is returnvalue)
         // get Command Data
          
    $ViessmannCommand ViessmannGetCommand$Command );
         if ( 
    $ViessmannCommand === false ) return false;
         
         
    // clear previous result
         
    do
         {
            
    SetValueStringVIESSMANN_VARIABLE_RESULT"" );
            
    // create command string and send to COM Port
            
    $CommandString "R:".$ViessmannCommand["protocol"].":".$ViessmannCommand["address"].":".$ViessmannCommand["length"].": ";
            
    //$StartTime = microtime(true);
            //$RunTime = 0;
            
    SetValueStringVIESSMANN_VARIABLE_COMMAND$CommandString );
            
    // wait for execution
            
    $status getvalueVIESSMANN_VARIABLE_COMMAND );
            
    //while ($status != "" AND $RunTime < 1 )
            //{
                  //$status = getvalue( VIESSMANN_VARIABLE_COMMAND );
                  //$RunTime = microtime(true) - $StartTime;
            //}
            
    sleep(5);
            
    // get result
            
    $Result GetValueVIESSMANN_VARIABLE_RESULT );
            
            if ( 
    $Result != chr(0x05) ) $Run = -1;
            
    $Run--;
         } while ( 
    $Run );
         return 
    $Result;
      }  

      function 
    ViessmannSetData$Command$Data )
      {
         
    // get Command Data
          
    $ViessmannCommand ViessmannGetCommand$Command );
         if ( 
    $ViessmannCommand === false ) return false;
         if ( 
    $ViessmannCommand["action"] != "ReadWrite" ) return false;
         
    // clear previous result
        
    SetValueStringVIESSMANN_VARIABLE_RESULT"" );
        
    // create command string and send to COM Port
           
    $CommandString "W:".$ViessmannCommand["protocol"].":".$ViessmannCommand["address"].":".$ViessmannCommand["length"].":".$Data;
        
    SetValueStringVIESSMANN_VARIABLE_COMMAND$CommandString );
        
    // wait for execution
        
    $status getvalueVIESSMANN_VARIABLE_COMMAND );
        while (
    $status != ""$status getvalueVIESSMANN_VARIABLE_COMMAND );
        
    // get result
        
    $Result GetValueVIESSMANN_VARIABLE_RESULT );
        return 
    $Result;
      }
      
      function 
    ViessmannOpen()
      {
        
    // Open Com Port
        
    if ( COMPort_GetOpenVIESSMANN_VARIABLE_COMPORT ) != true )
        {
           
    COMPort_SetOpenVIESSMANN_VARIABLE_COMPORTtrue );
           
    IPS_ApplyChangesVIESSMANN_VARIABLE_COMPORT );
        }
      }
      
      function 
    ViessmannClose()
      {
        
    // Close Com Port
        
    if ( COMPort_GetOpenVIESSMANN_VARIABLE_COMPORT ) != false )
        {
           
    COMPort_SetOpenVIESSMANN_VARIABLE_COMPORTfalse );
           
    IPS_ApplyChangesVIESSMANN_VARIABLE_COMPORT );
        }
      }
      
      function 
    ViessmannSetVariableByCommand$Command$Var )
      {
        
    $Value ViessmannGetData$Command );
        if ( 
    $Value === false )
         {
           
    SetValueBooleanVIESSMANN_VARIABLE_CONNECTOKfalse );
         }
        else
        {
          
    SetValueBooleanVIESSMANN_VARIABLE_CONNECTOKtrue );
           
    SetValue$VarViessmannConvertData$Command$Value ) );
         }
      }

    ?>

    gruß Stefan

Ähnliche Themen

  1. Rolladen und Heizungsventil Steuerung
    Von s.jungen im Forum Haustechnik
    Antworten: 5
    Letzter Beitrag: 01.10.09, 22:07
  2. Synco Living | Viessmann Vitohome 300 - kompatibilität
    Von King-Nova im Forum KNX/EIB, LCN
    Antworten: 0
    Letzter Beitrag: 09.08.09, 08:54
  3. Entfernte Steuerung einbinden
    Von Jersey im Forum Haustechnik
    Antworten: 4
    Letzter Beitrag: 05.07.06, 17:21