Autor Thema: HM-SEC-SC-2 und aesCommReq  (Gelesen 13484 mal)

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #15 am: 26 Dezember 2015, 11:58:55 »
Danke für den Hinweis!

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #16 am: 29 Dezember 2015, 18:23:33 »
Werden weitere Logs benötigt ?

Offline martinp876

  • Moderator
  • Hero Member
  • ***
  • Beiträge: 11023
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #17 am: 29 Dezember 2015, 23:09:31 »
teste folgendes:

Zeile 1127:

      delete $mh{devH}->{lastMsg};
      #continue with old message
      return CUL_HM_Parse($iohash, $mh{devH}->{helper}{aesCommRq}{msgIn});
    }
    else {

und berichte

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #18 am: 30 Dezember 2015, 12:55:45 »
Hallo Martin,

danke für die Rückmeldung.

Ich habe dein delete Statement eingebaut und nochmals getestet, jedoch verhält sich der Kontakt mit aktiviertem aesCommReq wie zuvor. FHEM scheint die Authbytes jedoch korrekt zu senden, der HM-SEC-SC2 akzeptiert diese jedoch nicht.

Anbei die Logs:

Basis war in beiden Fällen:
10_CUL_HM.pm     10265 2015-12-26 10:47:19Z martinp876

Ohne aesack patch - lediglich mit deinem delete statement:

2015.12.30 12:35:43 5: CUL/RAW: /A0DFEA61034917527D0E20601000E13
2015.12.30 12:35:43 4: CUL_Parse: CUL_0 A 0D FE A610 349175 27D0E2 0601000E13 -64.5
2015.12.30 12:35:43 5: CUL_0 dispatch A0DFEA61034917527D0E20601000E::-64.5:CUL_0
2015.12.30 12:35:43 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge AD63CFE42B36 for key 2
2015.12.30 12:35:43 5: CUL_0 sending As11FEA00227D0E234917504AD63CFE42B3604
2015.12.30 12:35:43 5: CUL 349175 dly:87ms
2015.12.30 12:35:43 4: CUL_send:  CUL_0As 11 FE A002 27D0E2 349175 04AD63CFE42B3604
2015.12.30 12:35:43 5: CUL/RAW: /A19FEA20334917527D0E2AD14B2F3284014A26CB7E6CC618AE88611
2015.12.30 12:35:43 4: CUL_Parse: CUL_0 A 19 FE A203 349175 27D0E2 AD14B2F3284014A26CB7E6CC618AE88611 -65.5
2015.12.30 12:35:43 5: CUL_0 dispatch A19FEA20334917527D0E2AD14B2F3284014A26CB7E6CC618AE886::-65.5:CUL_0
2015.12.30 12:35:43 5: CUL_HM VCCU_0 iv: 01000e
             decrypted cmd: FEA61034917527D0E206
             original  cmd: FEA61034917527D0E206
2015.12.30 12:35:43 4: CUL_HM VCCU_0 signature: good, authbytes: 75c213a6
2015.12.30 12:35:44 5: CUL_0 sending As0EFE800227D0E23491750075c213a6
2015.12.30 12:35:44 5: CUL 349175 dly:72ms
2015.12.30 12:35:44 4: CUL_send:  CUL_0As 0E FE 8002 27D0E2 349175 0075c213a6
2015.12.30 12:35:44 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:35:44 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:35:44 5: CUL/RAW: /A0CFFA64134917527D0E201F1C81D
2015.12.30 12:35:44 4: CUL_Parse: CUL_0 A 0C FF A641 349175 27D0E2 01F1C81D -59.5
2015.12.30 12:35:44 5: CUL_0 dispatch A0CFFA64134917527D0E201F1C8::-59.5:CUL_0
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 64176BA3AADA for key 2
2015.12.30 12:35:45 5: CUL_0 sending As11FFA00227D0E23491750464176BA3AADA04
2015.12.30 12:35:45 5: CUL 349175 dly:87ms
2015.12.30 12:35:45 4: CUL_send:  CUL_0As 11 FF A002 27D0E2 349175 0464176BA3AADA04
2015.12.30 12:35:45 5: CUL/RAW: /A19FFA20334917527D0E256A26C51A8AB3DF836F7A661C18E7A7D20
2015.12.30 12:35:45 4: CUL_Parse: CUL_0 A 19 FF A203 349175 27D0E2 56A26C51A8AB3DF836F7A661C18E7A7D20 -58
2015.12.30 12:35:45 5: CUL_0 dispatch A19FFA20334917527D0E256A26C51A8AB3DF836F7A661C18E7A7D::-58:CUL_0
2015.12.30 12:35:45 5: CUL_HM VCCU_0 iv: f1c8
             decrypted cmd: FFA64134917527D0E201
             original  cmd: FFA64134917527D0E201
2015.12.30 12:35:45 4: CUL_HM VCCU_0 signature: good, authbytes: 6b3af7c2
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:35:45 5: CUL_0 sending As11FF800227D0E23491750101C8006b3af7c2
2015.12.30 12:35:45 5: CUL 349175 dly:70ms
2015.12.30 12:35:45 4: CUL_send:  CUL_0As 11 FF 8002 27D0E2 349175 0101C8006b3af7c2
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:35:45 5: CUL/RAW: /A0CFFA24134917527D0E201F1C81F
2015.12.30 12:35:45 4: CUL_Parse: CUL_0 A 0C FF A241 349175 27D0E2 01F1C81F -58.5
2015.12.30 12:35:45 5: CUL_0 dispatch A0CFFA24134917527D0E201F1C8::-58.5:CUL_0
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge D9CD39DCC95A for key 2
2015.12.30 12:35:45 5: CUL_0 sending As11FFA00227D0E234917504D9CD39DCC95A04
2015.12.30 12:35:45 5: CUL 349175 dly:87ms
2015.12.30 12:35:45 4: CUL_send:  CUL_0As 11 FF A002 27D0E2 349175 04D9CD39DCC95A04
2015.12.30 12:35:45 5: CUL/RAW: /A19FFA20334917527D0E2FD274A4A0C450138E69E61A6267AB3B614
2015.12.30 12:35:45 4: CUL_Parse: CUL_0 A 19 FF A203 349175 27D0E2 FD274A4A0C450138E69E61A6267AB3B614 -64
2015.12.30 12:35:45 5: CUL_0 dispatch A19FFA20334917527D0E2FD274A4A0C450138E69E61A6267AB3B6::-64:CUL_0
2015.12.30 12:35:45 5: CUL_HM VCCU_0 iv: f1c8
             decrypted cmd: FFA24134917527D0E201
             original  cmd: FFA24134917527D0E201
2015.12.30 12:35:45 4: CUL_HM VCCU_0 signature: good, authbytes: 80a98451
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:35:45 5: CUL_0 sending As11FF800227D0E23491750101C80080a98451
2015.12.30 12:35:45 5: CUL 349175 dly:71ms
2015.12.30 12:35:45 4: CUL_send:  CUL_0As 11 FF 8002 27D0E2 349175 0101C80080a98451
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:35:45 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:35:46 5: CUL/RAW: /A0CFFA24134917527D0E201F1C822
2015.12.30 12:35:46 4: CUL_Parse: CUL_0 A 0C FF A241 349175 27D0E2 01F1C822 -57
2015.12.30 12:35:46 5: CUL_0 dispatch A0CFFA24134917527D0E201F1C8::-57:CUL_0
2015.12.30 12:35:46 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 480727D7CCF5 for key 2
2015.12.30 12:35:46 5: CUL_0 sending As11FFA00227D0E234917504480727D7CCF504
2015.12.30 12:35:46 5: CUL 349175 dly:87ms
2015.12.30 12:35:46 4: CUL_send:  CUL_0As 11 FF A002 27D0E2 349175 04480727D7CCF504
2015.12.30 12:35:46 5: CUL/RAW: /A19FFA20334917527D0E24CE7DEFC30D675650CDE9ACA3DF1BDFF1C
2015.12.30 12:35:46 4: CUL_Parse: CUL_0 A 19 FF A203 349175 27D0E2 4CE7DEFC30D675650CDE9ACA3DF1BDFF1C -60
2015.12.30 12:35:46 5: CUL_0 dispatch A19FFA20334917527D0E24CE7DEFC30D675650CDE9ACA3DF1BDFF::-60:CUL_0
2015.12.30 12:35:46 5: CUL_HM VCCU_0 iv: f1c8
             decrypted cmd: FFA24134917527D0E201
             original  cmd: FFA24134917527D0E201
2015.12.30 12:35:46 4: CUL_HM VCCU_0 signature: good, authbytes: d1b077f7
2015.12.30 12:35:46 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:35:46 5: CUL_0 sending As11FF800227D0E23491750101C800d1b077f7
2015.12.30 12:35:46 5: CUL 349175 dly:71ms
2015.12.30 12:35:46 4: CUL_send:  CUL_0As 11 FF 8002 27D0E2 349175 0101C800d1b077f7
2015.12.30 12:35:46 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:35:46 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:35:46 5: CUL/RAW: /A0F5486103CDBBB0000000A90BB100B0011
2015.12.30 12:35:46 4: CUL_Parse: CUL_0 A 0F 54 8610 3CDBBB 000000 0A90BB100B0011 -65.5
2015.12.30 12:35:46 5: CUL_0 dispatch A0F5486103CDBBB0000000A90BB100B00::-65.5:CUL_0
2015.12.30 12:35:47 5: CUL/RAW: /A0CFFA24134917527D0E201F1C80D
2015.12.30 12:35:47 4: CUL_Parse: CUL_0 A 0C FF A241 349175 27D0E2 01F1C80D -67.5
2015.12.30 12:35:47 5: CUL_0 dispatch A0CFFA24134917527D0E201F1C8::-67.5:CUL_0
2015.12.30 12:35:47 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 590D246BB906 for key 2
2015.12.30 12:35:47 5: CUL_0 sending As11FFA00227D0E234917504590D246BB90604
2015.12.30 12:35:47 5: CUL 349175 dly:87ms
2015.12.30 12:35:47 4: CUL_send:  CUL_0As 11 FF A002 27D0E2 349175 04590D246BB90604
2015.12.30 12:35:47 5: CUL/RAW: /A19FFA20334917527D0E29890F8F8180A0879BA7DB048AC8F74D41E
2015.12.30 12:35:47 4: CUL_Parse: CUL_0 A 19 FF A203 349175 27D0E2 9890F8F8180A0879BA7DB048AC8F74D41E -59
2015.12.30 12:35:47 5: CUL_0 dispatch A19FFA20334917527D0E29890F8F8180A0879BA7DB048AC8F74D4::-59:CUL_0
2015.12.30 12:35:47 5: CUL_HM VCCU_0 iv: f1c8
             decrypted cmd: FFA24134917527D0E201
             original  cmd: FFA24134917527D0E201
2015.12.30 12:35:47 4: CUL_HM VCCU_0 signature: good, authbytes: baf532e2
2015.12.30 12:35:47 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:35:47 5: CUL_0 sending As11FF800227D0E23491750101C800baf532e2
2015.12.30 12:35:47 5: CUL 349175 dly:70ms
2015.12.30 12:35:47 4: CUL_send:  CUL_0As 11 FF 8002 27D0E2 349175 0101C800baf532e2
2015.12.30 12:35:47 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:35:47 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:35:49 5: CUL/RAW: /A0CFFA24134917527D0E201F1C81F
2015.12.30 12:35:49 4: CUL_Parse: CUL_0 A 0C FF A241 349175 27D0E2 01F1C81F -58.5
2015.12.30 12:35:49 5: CUL_0 dispatch A0CFFA24134917527D0E201F1C8::-58.5:CUL_0
2015.12.30 12:35:49 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 38EF1183FB5E for key 2
2015.12.30 12:35:49 5: CUL_0 sending As11FFA00227D0E23491750438EF1183FB5E04
2015.12.30 12:35:49 5: CUL 349175 dly:87ms
2015.12.30 12:35:49 4: CUL_send:  CUL_0As 11 FF A002 27D0E2 349175 0438EF1183FB5E04
2015.12.30 12:35:54 5: CUL/RAW: /A0CFFA24134917527D0E201F1C81C
2015.12.30 12:35:54 4: CUL_Parse: CUL_0 A 0C FF A241 349175 27D0E2 01F1C81C -60
2015.12.30 12:35:54 5: CUL_0 dispatch A0CFFA24134917527D0E201F1C8::-60:CUL_0
2015.12.30 12:35:54 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 38EF1183FB5E for key 2
2015.12.30 12:35:54 5: CUL_0 sending As11FFA00227D0E23491750438EF1183FB5E04
2015.12.30 12:35:54 5: CUL 349175 dly:87ms
2015.12.30 12:35:54 4: CUL_send:  CUL_0As 11 FF A002 27D0E2 349175 0438EF1183FB5E04
2015.12.30 12:35:54 5: CUL/RAW: /A19FFA20334917527D0E2621880E972FA4F11ACA0046A33D5D6451D
2015.12.30 12:35:54 4: CUL_Parse: CUL_0 A 19 FF A203 349175 27D0E2 621880E972FA4F11ACA0046A33D5D6451D -59.5
2015.12.30 12:35:54 5: CUL_0 dispatch A19FFA20334917527D0E2621880E972FA4F11ACA0046A33D5D645::-59.5:CUL_0
2015.12.30 12:35:54 5: CUL_HM VCCU_0 iv: f1c8
             decrypted cmd: FFA24134917527D0E201
             original  cmd: FFA24134917527D0E201
2015.12.30 12:35:54 4: CUL_HM VCCU_0 signature: good, authbytes: 4a384992
2015.12.30 12:35:54 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:35:54 5: CUL_0 sending As11FF800227D0E23491750101C8004a384992
2015.12.30 12:35:54 5: CUL 349175 dly:71ms
2015.12.30 12:35:54 4: CUL_send:  CUL_0As 11 FF 8002 27D0E2 349175 0101C8004a384992
2015.12.30 12:35:54 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:35:54 5: CUL_HM Kueche_Terrassentuer sent ACK:2

Mit aesack patch von Michael und deinem delete statement:

2015.12.30 12:47:07 5: CUL/RAW: /A0D04A61034917527D0E20601000E13

2015.12.30 12:47:07 4: CUL_Parse: CUL_0 A 0D 04 A610 349175 27D0E2 0601000E13 -64.5
2015.12.30 12:47:07 5: CUL_0 dispatch A0D04A61034917527D0E20601000E::-64.5:CUL_0
2015.12.30 12:47:07 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 840524C5C5EA for key 2
2015.12.30 12:47:07 5: CUL_0 sending As1104A00227D0E234917504840524C5C5EA04
2015.12.30 12:47:07 5: CUL 349175 dly:88ms
2015.12.30 12:47:07 4: CUL_send:  CUL_0As 11 04 A002 27D0E2 349175 04840524C5C5EA04
2015.12.30 12:47:08 5: CUL/RAW: /A1904A20334917527D0E2A55C0BDA50DDB12A21441A30DFB6A9F112

2015.12.30 12:47:08 4: CUL_Parse: CUL_0 A 19 04 A203 349175 27D0E2 A55C0BDA50DDB12A21441A30DFB6A9F112 -65
2015.12.30 12:47:08 5: CUL_0 dispatch A1904A20334917527D0E2A55C0BDA50DDB12A21441A30DFB6A9F1::-65:CUL_0
2015.12.30 12:47:08 5: CUL_HM VCCU_0 iv: 01000e
             decrypted cmd: 04A61034917527D0E206
             original  cmd: 04A61034917527D0E206
2015.12.30 12:47:08 4: CUL_HM VCCU_0 signature: good, authbytes: c815537c
2015.12.30 12:47:08 5: CUL_0 sending As0E04800227D0E234917500c815537c
2015.12.30 12:47:08 5: CUL 349175 dly:72ms
2015.12.30 12:47:08 4: CUL_send:  CUL_0As 0E 04 8002 27D0E2 349175 00c815537c
2015.12.30 12:47:08 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:08 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:47:09 5: CUL/RAW: /A0C05A64134917527D0E201F5C821

2015.12.30 12:47:09 4: CUL_Parse: CUL_0 A 0C 05 A641 349175 27D0E2 01F5C821 -57.5
2015.12.30 12:47:09 5: CUL_0 dispatch A0C05A64134917527D0E201F5C8::-57.5:CUL_0
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge CFEA32F59581 for key 2
2015.12.30 12:47:09 5: CUL_0 sending As1105A00227D0E234917504CFEA32F5958104
2015.12.30 12:47:09 5: CUL 349175 dly:88ms
2015.12.30 12:47:09 4: CUL_send:  CUL_0As 11 05 A002 27D0E2 349175 04CFEA32F5958104
2015.12.30 12:47:09 5: CUL/RAW: /A1905A20334917527D0E26C041DE865D63CD6712FE90F773364B012

2015.12.30 12:47:09 4: CUL_Parse: CUL_0 A 19 05 A203 349175 27D0E2 6C041DE865D63CD6712FE90F773364B012 -65
2015.12.30 12:47:09 5: CUL_0 dispatch A1905A20334917527D0E26C041DE865D63CD6712FE90F773364B0::-65:CUL_0
2015.12.30 12:47:09 5: CUL_HM VCCU_0 iv: f5c8
             decrypted cmd: 05A64134917527D0E201
             original  cmd: 05A64134917527D0E201
2015.12.30 12:47:09 4: CUL_HM VCCU_0 signature: good, authbytes: b02c638d
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:47:09 5: CUL_0 sending As1105800227D0E23491750101C800b02c638d
2015.12.30 12:47:09 5: CUL 349175 dly:71ms
2015.12.30 12:47:09 4: CUL_send:  CUL_0As 11 05 8002 27D0E2 349175 0101C800b02c638d
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:47:09 5: CUL/RAW: /A0C05A24134917527D0E201F5C828

2015.12.30 12:47:09 4: CUL_Parse: CUL_0 A 0C 05 A241 349175 27D0E2 01F5C828 -54
2015.12.30 12:47:09 5: CUL_0 dispatch A0C05A24134917527D0E201F5C8::-54:CUL_0
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 1E4BB944FA23 for key 2
2015.12.30 12:47:09 5: CUL_0 sending As1105A00227D0E2349175041E4BB944FA2304
2015.12.30 12:47:09 5: CUL 349175 dly:87ms
2015.12.30 12:47:09 4: CUL_send:  CUL_0As 11 05 A002 27D0E2 349175 041E4BB944FA2304
2015.12.30 12:47:09 5: CUL/RAW: /A1905A20334917527D0E2F302120B33E807DA08567E3E05B8D1BA32

2015.12.30 12:47:09 4: CUL_Parse: CUL_0 A 19 05 A203 349175 27D0E2 F302120B33E807DA08567E3E05B8D1BA32 -49
2015.12.30 12:47:09 5: CUL_0 dispatch A1905A20334917527D0E2F302120B33E807DA08567E3E05B8D1BA::-49:CUL_0
2015.12.30 12:47:09 5: CUL_HM VCCU_0 iv: f5c8
             decrypted cmd: 05A24134917527D0E201
             original  cmd: 05A24134917527D0E201
2015.12.30 12:47:09 4: CUL_HM VCCU_0 signature: good, authbytes: d022e698
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:47:09 5: CUL_0 sending As1105800227D0E23491750101C800d022e698
2015.12.30 12:47:09 5: CUL 349175 dly:71ms
2015.12.30 12:47:09 4: CUL_send:  CUL_0As 11 05 8002 27D0E2 349175 0101C800d022e698
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:09 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:47:10 5: CUL/RAW: /A0C05A24134917527D0E201F5C831

2015.12.30 12:47:10 4: CUL_Parse: CUL_0 A 0C 05 A241 349175 27D0E2 01F5C831 -49.5
2015.12.30 12:47:10 5: CUL_0 dispatch A0C05A24134917527D0E201F5C8::-49.5:CUL_0
2015.12.30 12:47:10 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 69B3EB240A83 for key 2
2015.12.30 12:47:10 5: CUL_0 sending As1105A00227D0E23491750469B3EB240A8304
2015.12.30 12:47:10 5: CUL 349175 dly:87ms
2015.12.30 12:47:10 4: CUL_send:  CUL_0As 11 05 A002 27D0E2 349175 0469B3EB240A8304
2015.12.30 12:47:10 5: CUL/RAW: /A1905A20334917527D0E21E3F24B8935570C14A73E5E333F3D9A92E

2015.12.30 12:47:10 4: CUL_Parse: CUL_0 A 19 05 A203 349175 27D0E2 1E3F24B8935570C14A73E5E333F3D9A92E -51
2015.12.30 12:47:10 5: CUL_0 dispatch A1905A20334917527D0E21E3F24B8935570C14A73E5E333F3D9A9::-51:CUL_0
2015.12.30 12:47:10 5: CUL_HM VCCU_0 iv: f5c8
             decrypted cmd: 05A24134917527D0E201
             original  cmd: 05A24134917527D0E201
2015.12.30 12:47:10 4: CUL_HM VCCU_0 signature: good, authbytes: 07308df9
2015.12.30 12:47:10 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:47:10 5: CUL_0 sending As1105800227D0E23491750101C80007308df9
2015.12.30 12:47:10 5: CUL 349175 dly:70ms
2015.12.30 12:47:10 4: CUL_send:  CUL_0As 11 05 8002 27D0E2 349175 0101C80007308df9
2015.12.30 12:47:10 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:10 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:47:11 5: CUL/RAW: /A0C05A24134917527D0E201F5C80F

2015.12.30 12:47:11 4: CUL_Parse: CUL_0 A 0C 05 A241 349175 27D0E2 01F5C80F -66.5
2015.12.30 12:47:11 5: CUL_0 dispatch A0C05A24134917527D0E201F5C8::-66.5:CUL_0
2015.12.30 12:47:11 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 02ECE9BF44FD for key 2
2015.12.30 12:47:11 5: CUL_0 sending As1105A00227D0E23491750402ECE9BF44FD04
2015.12.30 12:47:11 5: CUL 349175 dly:87ms
2015.12.30 12:47:11 4: CUL_send:  CUL_0As 11 05 A002 27D0E2 349175 0402ECE9BF44FD04
2015.12.30 12:47:11 5: CUL/RAW: /A1905A20334917527D0E2BEC9690E761F76293EBAF71119D8A3BF15

2015.12.30 12:47:11 4: CUL_Parse: CUL_0 A 19 05 A203 349175 27D0E2 BEC9690E761F76293EBAF71119D8A3BF15 -63.5
2015.12.30 12:47:11 5: CUL_0 dispatch A1905A20334917527D0E2BEC9690E761F76293EBAF71119D8A3BF::-63.5:CUL_0
2015.12.30 12:47:11 5: CUL_HM VCCU_0 iv: f5c8
             decrypted cmd: 05A24134917527D0E201
             original  cmd: 05A24134917527D0E201
2015.12.30 12:47:11 4: CUL_HM VCCU_0 signature: good, authbytes: 36f8df00
2015.12.30 12:47:11 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:47:11 5: CUL_0 sending As1105800227D0E23491750101C80036f8df00
2015.12.30 12:47:11 5: CUL 349175 dly:69ms
2015.12.30 12:47:11 4: CUL_send:  CUL_0As 11 05 8002 27D0E2 349175 0101C80036f8df00
2015.12.30 12:47:11 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:11 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:47:13 5: CUL/RAW: /A0C05A24134917527D0E201F5C814

2015.12.30 12:47:13 4: CUL_Parse: CUL_0 A 0C 05 A241 349175 27D0E2 01F5C814 -64
2015.12.30 12:47:13 5: CUL_0 dispatch A0C05A24134917527D0E201F5C8::-64:CUL_0
2015.12.30 12:47:13 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 588FCEE9A12F for key 2
2015.12.30 12:47:13 5: CUL_0 sending As1105A00227D0E234917504588FCEE9A12F04
2015.12.30 12:47:13 5: CUL 349175 dly:87ms
2015.12.30 12:47:13 4: CUL_send:  CUL_0As 11 05 A002 27D0E2 349175 04588FCEE9A12F04
2015.12.30 12:47:14 5: CUL/RAW: /A1905A20334917527D0E248F70AA82B8A21523DD99A3828ACAC4411

2015.12.30 12:47:14 4: CUL_Parse: CUL_0 A 19 05 A203 349175 27D0E2 48F70AA82B8A21523DD99A3828ACAC4411 -65.5
2015.12.30 12:47:14 5: CUL_0 dispatch A1905A20334917527D0E248F70AA82B8A21523DD99A3828ACAC44::-65.5:CUL_0
2015.12.30 12:47:14 5: CUL_HM VCCU_0 iv: f5c8
             decrypted cmd: 05A24134917527D0E201
             original  cmd: 05A24134917527D0E201
2015.12.30 12:47:14 4: CUL_HM VCCU_0 signature: good, authbytes: 6751da39
2015.12.30 12:47:14 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:47:14 5: CUL_0 sending As1105800227D0E23491750101C8006751da39
2015.12.30 12:47:14 5: CUL 349175 dly:71ms
2015.12.30 12:47:14 4: CUL_send:  CUL_0As 11 05 8002 27D0E2 349175 0101C8006751da39
2015.12.30 12:47:14 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:14 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.30 12:47:18 5: CUL/RAW: /A0C05A24134917527D0E201F5C811

2015.12.30 12:47:18 4: CUL_Parse: CUL_0 A 0C 05 A241 349175 27D0E2 01F5C811 -65.5
2015.12.30 12:47:18 5: CUL_0 dispatch A0C05A24134917527D0E201F5C8::-65.5:CUL_0
2015.12.30 12:47:18 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge BD99F831A26A for key 2
2015.12.30 12:47:18 5: CUL_0 sending As1105A00227D0E234917504BD99F831A26A04
2015.12.30 12:47:18 5: CUL 349175 dly:87ms
2015.12.30 12:47:18 4: CUL_send:  CUL_0As 11 05 A002 27D0E2 349175 04BD99F831A26A04
2015.12.30 12:47:18 5: CUL/RAW: /A1905A20334917527D0E271C181DE7E79369588AEAC8614C7755510

2015.12.30 12:47:18 4: CUL_Parse: CUL_0 A 19 05 A203 349175 27D0E2 71C181DE7E79369588AEAC8614C7755510 -66
2015.12.30 12:47:18 5: CUL_0 dispatch A1905A20334917527D0E271C181DE7E79369588AEAC8614C77555::-66:CUL_0
2015.12.30 12:47:18 5: CUL_HM VCCU_0 iv: f5c8
             decrypted cmd: 05A24134917527D0E201
             original  cmd: 05A24134917527D0E201
2015.12.30 12:47:18 4: CUL_HM VCCU_0 signature: good, authbytes: 3176ceac
2015.12.30 12:47:18 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.30 12:47:18 5: CUL_0 sending As1105800227D0E23491750101C8003176ceac
2015.12.30 12:47:18 5: CUL 349175 dly:71ms
2015.12.30 12:47:18 4: CUL_send:  CUL_0As 11 05 8002 27D0E2 349175 0101C8003176ceac
2015.12.30 12:47:18 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.30 12:47:18 5: CUL_HM Kueche_Terrassentuer sent ACK:2

Viele Grüße!

Offline martinp876

  • Moderator
  • Hero Member
  • ***
  • Beiträge: 11023
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #19 am: 30 Dezember 2015, 16:13:30 »
In beiden fällen wird AES von fhem akzeptiert und ein ACK gesendet.

Was wird nicht akzeptiert?

Online frank

  • Hero Member
  • *****
  • Beiträge: 10342
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #20 am: 30 Dezember 2015, 16:52:27 »
Zitat
2015.12.30 12:35:47 4: CUL_send:  CUL_0As 11 FF 8002 27D0E2 349175 0101C800baf532e2
die kleinen buchstaben sind wahrscheinlich das problem.

was ist das für ein cul?, welche fw?
nimm mal die fw aus dem angepinnten thread.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [hm.js]: https://forum.fhem.de/index.php/topic,106959.0.html

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #21 am: 30 Dezember 2015, 18:44:04 »
Hallo,

hier die Infos zum CUL:

VERSION    V 1.61 CUL868

Frage zur Empfehlung der alternativen Firmware mit Timing:

Ich würde die CUL_V3.hex aus dem Archiv ' culfw-code-459-trunk_lufa_rf_cr_sd_75_63.zip' nehmen - ist die soweit stabil, dass ich mir den CUL nicht abschieße? Habe ich es richtig verstanden, das ich dann noch einige Module (bspw. 00_CUL.pm und 14_CUL_TX.pm etc.) in FHEM austauschen muss ?

Wäre eine Alternative auch die a-culfw?

Viele Grüße,

ambiman

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #22 am: 30 Dezember 2015, 18:46:31 »
@Martin:

Mit nicht akzeptiert meinte ich, dass der Fensterkontakt das ACK von FHEM scheinbar nicht akzeptiert und immer wieder eine neue Response anfordert.

Offline martinp876

  • Moderator
  • Hero Member
  • ***
  • Beiträge: 11023
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #23 am: 30 Dezember 2015, 22:15:57 »
Dann scheint es das timing zu sein ( just guess).
Die alternative cul-fw ist m.e. der einzige weg mit hm zu arbeiten. Die fw arbeitet auch mit der original 00_cul. Das timing wird erst mit der alternativen 00_cul gelöst werden.
Leider wird es nicht absehbar in fhem integriert. Ich nutze primär hmlan, cul aber ausschließlich in der modifizierten Form. Die Originalversion werde ich nicht mehr debuggen. Da sind wir schon mehrfach durch, das wird nicht besser von alleine.

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #24 am: 31 Dezember 2015, 12:59:40 »
So ich habe den CUL jetzt mit der alternativen Firmware geflashed sowie die zugehörigen PL-Module von FHEM ausgetauscht, leider ändert sich an dem Verhalten des HM-SEC-SC2 nichts  :(

   VERSION    V 99.75 CUL868
   VERSION_HW CUL_V3.4

Folgende PM ausgetauscht:

00_CUL.pm
10_CUL_HM.pm
13_KS300.pm
14_CUL_TX.pm
14_CUL_WS.pm
16_STACKABLE_CC.pm
DevIo.pm

Das 10_CUL_HM Module weicht derzeit wie folgt vom Original ab:

/opt/fhem/FHEM# diff 10_CUL_HM.pm 10_CUL_HM.pm.orig
1269,1273c1269
<       CUL_HM_SndCmd($mh{$ack}[$i++],$mh{$ack}[$i++]
<       .($mh{devH}->{helper}{aesAuthBytes}
<       ?$mh{devH}->{helper}{aesAuthBytes}
<       :"")
<    ) while ($i<@{$ack});
---
>       CUL_HM_SndCmd($mh{$ack}[$i++],$mh{$ack}[$i++]) while ($i<@{$ack});
1275d1270
<       delete($mh{devH}->{helper}{aesAuthBytes});

Anbei die Logs:

2015.12.31 12:50:12 5: CUL/RAW: /AFF510001287C000C22A64134917527D0E20111C80F
2015.12.31 12:50:12 4: CUL_Parse: CUL_0  505415 A FF51 00607200 00 0C 22 A641 349175 27D0E2 0111C8 -66.5
2015.12.31 12:50:12 5: CUL_0 dispatch A0C22A64134917527D0E20111C8::-66.5:CUL_0
2015.12.31 12:50:12 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 2382DC8719DE for key 2
2015.12.31 12:50:12 5: CUL_0 sending As1122A00227D0E2349175042382DC8719DE04
2015.12.31 12:50:12 4: CUL_send:  CUL_0                         Aw 0A 11 22 A002 27D0E2 349175 042382DC8719DE04
2015.12.31 12:50:12 3: CUL_send:  CUL_0  id:349175 dDly:84
2015.12.31 12:50:12 5: CUL/RAW: /AFF5300012889001122A00227D0E2349175042382DC8719DE0480
2015.12.31 12:50:12 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2015.12.31 12:50:12 4: CUL_Parse: CUL_0  505547 A FF53 00607304 00 11 22 A002 27D0E2 349175 042382DC8719DE04 -138
2015.12.31 12:50:12 5: CUL/RAW: /AFF510001289D001922A20334917527D0E24BE5FA55ACE2F139C327FE177F2EDB8110
2015.12.31 12:50:12 4: CUL_Parse: CUL_0  505678 A FF51 00607464 00 19 22 A203 349175 27D0E2 4BE5FA55ACE2F139C327FE177F2EDB81 -66
2015.12.31 12:50:12 5: CUL_0 dispatch A1922A20334917527D0E24BE5FA55ACE2F139C327FE177F2EDB81::-66:CUL_0
2015.12.31 12:50:12 5: CUL_HM VCCU_0 iv: 11c8
             decrypted cmd: 22A64134917527D0E201
             original  cmd: 22A64134917527D0E201
2015.12.31 12:50:12 4: CUL_HM VCCU_0 signature: good, authbytes: 50fd32e8
2015.12.31 12:50:12 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2015.12.31 12:50:12 5: CUL_0 sending As1122800227D0E23491750101C80050fd32e8
2015.12.31 12:50:12 4: CUL_send:  CUL_0                         Aw 08 11 22 8002 27D0E2 349175 0101C80050fd32e8
2015.12.31 12:50:12 3: CUL_send:  CUL_0  id:349175 dDly:69
2015.12.31 12:50:12 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2015.12.31 12:50:12 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2015.12.31 12:50:12 5: CUL/RAW: /AFF53000128AA001122800227D0E23491750101C80050fd32e880
2015.12.31 12:50:12 2: CUL_ParseTsHM CUL_0 illegal message received: AFF53000128AA001122800227D0E23491750101C80050fd32e880
2015.12.31 12:50:12 4: CUL_Parse: CUL_0 AFF53000128AA001122800227D0E23491750101C80050fd32e880
2015.12.31 12:50:12 5: CUL_0 dispatch :CUL_0
2015.12.31 12:50:12 5: Triggering CUL_0 (1 changes)
2015.12.31 12:50:12 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2015.12.31 12:50:12 3: CUL_0: Unknown code :CUL_0, help me!
2015.12.31 12:50:12 5: CUL/RAW: /AFF51000128BB000C22A24134917527D0E20111C80E
2015.12.31 12:50:12 4: CUL_Parse: CUL_0  505918 A FF51 00607704 00 0C 22 A241 349175 27D0E2 0111C8 -67
2015.12.31 12:50:12 5: CUL_0 dispatch A0C22A24134917527D0E20111C8::-67:CUL_0
2015.12.31 12:50:12 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 72747E16F744 for key 2
2015.12.31 12:50:12 5: CUL_0 sending As1122A00227D0E23491750472747E16F74404
2015.12.31 12:50:12 4: CUL_send:  CUL_0                         Aw 0A 11 22 A002 27D0E2 349175 0472747E16F74404
2015.12.31 12:50:12 3: CUL_send:  CUL_0  id:349175 dDly:86
2015.12.31 12:50:12 5: CUL/RAW: /AFF53000128C8001122A00227D0E23491750472747E16F7440480
2015.12.31 12:50:12 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2015.12.31 12:50:12 4: CUL_Parse: CUL_0  506051 A FF53 00607808 00 11 22 A002 27D0E2 349175 0472747E16F74404 -138
2015.12.31 12:50:13 5: CUL/RAW: /AFF51000128DC001922A20334917527D0E2ED64E781F13076ED6A25C208C91A56A60C
2015.12.31 12:50:13 4: CUL_Parse: CUL_0  506181 A FF51 00607968 00 19 22 A203 349175 27D0E2 ED64E781F13076ED6A25C208C91A56A6 -68
2015.12.31 12:50:13 5: CUL_0 dispatch A1922A20334917527D0E2ED64E781F13076ED6A25C208C91A56A6::-68:CUL_0
2015.12.31 12:50:13 5: CUL_HM VCCU_0 iv: 11c8
             decrypted cmd: 22A24134917527D0E201
             original  cmd: 22A24134917527D0E201
2015.12.31 12:50:13 4: CUL_HM VCCU_0 signature: good, authbytes: dd429043
2015.12.31 12:50:13 4: CUL_HM protstate undeviced hash to set CMDs_done
2015.12.31 12:50:13 4: CUL_HM Kueche_Terrassentuer dupe: repeat 2 ack, dont process
2015.12.31 12:50:13 5: CUL/RAW: /AFF5100012919000C22A24134917527D0E20111C807
2015.12.31 12:50:13 4: CUL_Parse: CUL_0  506671 A FF51 00608456 00 0C 22 A241 349175 27D0E2 0111C8 -70.5
2015.12.31 12:50:13 5: CUL_0 dispatch A0C22A24134917527D0E20111C8::-70.5:CUL_0
2015.12.31 12:50:13 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge F94F3BF7885C for key 2
2015.12.31 12:50:13 5: CUL_0 sending As1122A00227D0E234917504F94F3BF7885C04
2015.12.31 12:50:13 4: CUL_send:  CUL_0                         Aw 0A 11 22 A002 27D0E2 349175 04F94F3BF7885C04
2015.12.31 12:50:13 3: CUL_send:  CUL_0  id:349175 dDly:84
2015.12.31 12:50:13 5: CUL/RAW: /AFF5300012926001122A00227D0E234917504F94F3BF7885C0480
2015.12.31 12:50:13 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2015.12.31 12:50:13 4: CUL_Parse: CUL_0  506804 A FF53 00608560 00 11 22 A002 27D0E2 349175 04F94F3BF7885C04 -138
2015.12.31 12:50:13 5: CUL/RAW: /AFF510001293A001922A20334917527D0E29072648E7780297591D93449EA048F1F08
2015.12.31 12:50:13 4: CUL_Parse: CUL_0  506934 A FF51 00608720 00 19 22 A203 349175 27D0E2 9072648E7780297591D93449EA048F1F -70
2015.12.31 12:50:13 5: CUL_0 dispatch A1922A20334917527D0E29072648E7780297591D93449EA048F1F::-70:CUL_0
2015.12.31 12:50:13 5: CUL_HM VCCU_0 iv: 11c8
             decrypted cmd: 22A24134917527D0E201
             original  cmd: 22A24134917527D0E201
2015.12.31 12:50:13 4: CUL_HM VCCU_0 signature: good, authbytes: 3636d27d
2015.12.31 12:50:13 4: CUL_HM protstate undeviced hash to set CMDs_done
2015.12.31 12:50:13 4: CUL_HM Kueche_Terrassentuer dupe: repeat 2 ack, dont process
2015.12.31 12:50:14 5: CUL/RAW: /AFF51000129B6000C22A24134917527D0E20111C805
2015.12.31 12:50:14 4: CUL_Parse: CUL_0  507926 A FF51 00609712 00 0C 22 A241 349175 27D0E2 0111C8 -71.5
2015.12.31 12:50:14 5: CUL_0 dispatch A0C22A24134917527D0E20111C8::-71.5:CUL_0
2015.12.31 12:50:14 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 65F2F4984AE8 for key 2
2015.12.31 12:50:14 5: CUL_0 sending As1122A00227D0E23491750465F2F4984AE804
2015.12.31 12:50:14 4: CUL_send:  CUL_0                         Aw 0A 11 22 A002 27D0E2 349175 0465F2F4984AE804
2015.12.31 12:50:14 3: CUL_send:  CUL_0  id:349175 dDly:85
2015.12.31 12:50:14 5: CUL/RAW: /AFF53000129C3001122A00227D0E23491750465F2F4984AE80480
2015.12.31 12:50:14 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2015.12.31 12:50:14 4: CUL_Parse: CUL_0  508060 A FF53 00609816 00 11 22 A002 27D0E2 349175 0465F2F4984AE804 -138
2015.12.31 12:50:15 5: CUL/RAW: /AFF51000129D7001922A20334917527D0E29076B2D747E36E5B883DE9F435331B7904
2015.12.31 12:50:15 4: CUL_Parse: CUL_0  508191 A FF51 00609976 00 19 22 A203 349175 27D0E2 9076B2D747E36E5B883DE9F435331B79 -72
2015.12.31 12:50:15 5: CUL_0 dispatch A1922A20334917527D0E29076B2D747E36E5B883DE9F435331B79::-72:CUL_0
2015.12.31 12:50:15 5: CUL_HM VCCU_0 iv: 11c8
             decrypted cmd: 22A24134917527D0E201
             original  cmd: 22A24134917527D0E201
2015.12.31 12:50:15 4: CUL_HM VCCU_0 signature: good, authbytes: f9618106
2015.12.31 12:50:15 4: CUL_HM protstate undeviced hash to set CMDs_done
2015.12.31 12:50:15 4: CUL_HM Kueche_Terrassentuer dupe: repeat 2 ack, dont process
2015.12.31 12:50:17 5: CUL/RAW: /AFF5100012AD0000C22A24134917527D0E20111C80C
2015.12.31 12:50:17 4: CUL_Parse: CUL_0  510185 A FF51 00611968 00 0C 22 A241 349175 27D0E2 0111C8 -68
2015.12.31 12:50:17 5: CUL_0 dispatch A0C22A24134917527D0E20111C8::-68:CUL_0
2015.12.31 12:50:17 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 1AA8D7C8623A for key 2
2015.12.31 12:50:17 5: CUL_0 sending As1122A00227D0E2349175041AA8D7C8623A04
2015.12.31 12:50:17 4: CUL_send:  CUL_0                         Aw 09 11 22 A002 27D0E2 349175 041AA8D7C8623A04
2015.12.31 12:50:17 3: CUL_send:  CUL_0  id:349175 dDly:83
2015.12.31 12:50:17 5: CUL/RAW: /AFF5300012ADC001122A00227D0E2349175041AA8D7C8623A0480
2015.12.31 12:50:17 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:96
2015.12.31 12:50:17 4: CUL_Parse: CUL_0  510307 A FF53 00612064 00 11 22 A002 27D0E2 349175 041AA8D7C8623A04 -138
2015.12.31 12:50:17 5: CUL/RAW: /AFF5100012AF0001922A20334917527D0E2E94E73EB68A6CB411594F96C1F8CCE120A
2015.12.31 12:50:17 4: CUL_Parse: CUL_0  510438 A FF51 00612224 00 19 22 A203 349175 27D0E2 E94E73EB68A6CB411594F96C1F8CCE12 -69
2015.12.31 12:50:17 5: CUL_0 dispatch A1922A20334917527D0E2E94E73EB68A6CB411594F96C1F8CCE12::-69:CUL_0
2015.12.31 12:50:17 5: CUL_HM VCCU_0 iv: 11c8
             decrypted cmd: 22A24134917527D0E201
             original  cmd: 22A24134917527D0E201
2015.12.31 12:50:17 4: CUL_HM VCCU_0 signature: good, authbytes: dd57f37b
2015.12.31 12:50:17 4: CUL_HM protstate undeviced hash to set CMDs_done
2015.12.31 12:50:17 4: CUL_HM Kueche_Terrassentuer dupe: repeat 2 ack, dont process
2015.12.31 12:50:21 5: CUL/RAW: /AFF5100012CE3000C22A24134917527D0E20111C80A
2015.12.31 12:50:21 4: CUL_Parse: CUL_0  514435 A FF51 00616216 00 0C 22 A241 349175 27D0E2 0111C8 -69
2015.12.31 12:50:21 5: CUL_0 dispatch A0C22A24134917527D0E20111C8::-69:CUL_0
2015.12.31 12:50:21 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge F9B1E02E131B for key 2
2015.12.31 12:50:21 5: CUL_0 sending As1122A00227D0E234917504F9B1E02E131B04
2015.12.31 12:50:21 4: CUL_send:  CUL_0                         Aw 09 11 22 A002 27D0E2 349175 04F9B1E02E131B04
2015.12.31 12:50:21 3: CUL_send:  CUL_0  id:349175 dDly:80
2015.12.31 12:50:21 5: CUL/RAW: /AFF5300012CEF001122A00227D0E234917504F9B1E02E131B0480
2015.12.31 12:50:21 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:96
2015.12.31 12:50:21 4: CUL_Parse: CUL_0  514556 A FF53 00616312 00 11 22 A002 27D0E2 349175 04F9B1E02E131B04 -138
2015.12.31 12:50:21 5: CUL/RAW: /AFF5100012D03001922A20334917527D0E2492A999F78790AB4F0E8F7C34586B8AE0A
2015.12.31 12:50:21 4: CUL_Parse: CUL_0  514687 A FF51 00616472 00 19 22 A203 349175 27D0E2 492A999F78790AB4F0E8F7C34586B8AE -69
2015.12.31 12:50:21 5: CUL_0 dispatch A1922A20334917527D0E2492A999F78790AB4F0E8F7C34586B8AE::-69:CUL_0
2015.12.31 12:50:21 5: CUL_HM VCCU_0 iv: 11c8
             decrypted cmd: 22A24134917527D0E201
             original  cmd: 22A24134917527D0E201
2015.12.31 12:50:21 4: CUL_HM VCCU_0 signature: good, authbytes: c29c963b
2015.12.31 12:50:21 4: CUL_HM protstate undeviced hash to set CMDs_done
2015.12.31 12:50:21 4: CUL_HM Kueche_Terrassentuer dupe: repeat 2 ack, dont process

Offline martinp876

  • Moderator
  • Hero Member
  • ***
  • Beiträge: 11023
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #25 am: 31 Dezember 2015, 17:52:39 »
1) die message wird bei der Widerholung als duplicate erkannt. also baue ein
Zeile 1129
      delete $mh{devH}->{lastMsg};
      return CUL_HM_Parse($iohash, $mh{devH}->{helper}{aesCommRq}{msgIn});
=> FHEM sollte bei den wiederholungen versuchenzu loggen.


2) das Timing scheint ein Problem zu sein. um dies zu bestimmen musst du millisec loggen:
attr global mseclog 1

dann logge noch einmal

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #26 am: 01 Januar 2016, 19:59:52 »
Hallo Martin,

so, ich habe jetzt wie folgt getestet:

Alternative FW mit Timing von Ansgar:

   TYPE       CUL
   VERSION    V 99.75 CUL868
   VERSION_HW CUL_V3.4

Angepasste FHEM-PMs von Ansgar sowie das gepatched CUL_HM.pm mit folgenden Änderungen:

/opt/fhem/FHEM# diff 10_CUL_HM.pm 10_CUL_HM.pm.orig
1270,1274c1270
<       CUL_HM_SndCmd($mh{$ack}[$i++],$mh{$ack}[$i++]
<       .($mh{devH}->{helper}{aesAuthBytes}
<       ?$mh{devH}->{helper}{aesAuthBytes}
<       :"")
<    ) while ($i<@{$ack});
---
>       CUL_HM_SndCmd($mh{$ack}[$i++],$mh{$ack}[$i++]) while ($i<@{$ack});
1276d1271
<       delete($mh{devH}->{helper}{aesAuthBytes});

Hoffe die Rahmenbedingungen für den Test sind damit soweit OK?

Leider auch kein wirklicher Erfolg - Logs anbei:

2016.01.01 19:53:09.005 5: CUL/RAW: /AFF5100010B4B000C4EA64134917527D0E2013C0011
2016.01.01 19:53:09.009 4: CUL_Parse: CUL_0  084494 A FF51 00547416 00 0C 4E A641 349175 27D0E2 013C00 -65.5
2016.01.01 19:53:09.012 5: CUL_0 dispatch A0C4EA64134917527D0E2013C00::-65.5:CUL_0
2016.01.01 19:53:09.019 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 8F7CDC432552 for key 2
2016.01.01 19:53:09.021 5: CUL_0 sending As114EA00227D0E2349175048F7CDC43255204
2016.01.01 19:53:09.023 4: CUL_send:  CUL_0                         Aw 0A 11 4E A002 27D0E2 349175 048F7CDC43255204
2016.01.01 19:53:09.035 3: CUL_send:  CUL_0  id:349175 dDly:83
2016.01.01 19:53:09.136 5: CUL/RAW: /AFF5300010B5800114EA00227D0E2349175048F7CDC4325520480
2016.01.01 19:53:09.139 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:09.141 4: CUL_Parse: CUL_0  084626 A FF53 00547520 00 11 4E A002 27D0E2 349175 048F7CDC43255204 -138
2016.01.01 19:53:09.267 5: CUL/RAW: /AFF5100010B6C00194EA20334917527D0E2326FD7924A8FA621091A7036353DE84311
2016.01.01 19:53:09.271 4: CUL_Parse: CUL_0  084757 A FF51 00547680 00 19 4E A203 349175 27D0E2 326FD7924A8FA621091A7036353DE843 -65.5
2016.01.01 19:53:09.275 5: CUL_0 dispatch A194EA20334917527D0E2326FD7924A8FA621091A7036353DE843::-65.5:CUL_0
2016.01.01 19:53:09.281 5: CUL_HM VCCU_0 iv: 3c00
             decrypted cmd: 4EA64134917527D0E201
             original  cmd: 4EA64134917527D0E201
2016.01.01 19:53:09.283 4: CUL_HM VCCU_0 signature: good, authbytes: c2d6f4ce
2016.01.01 19:53:09.297 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.01 19:53:09.300 5: CUL_0 sending As114E800227D0E23491750101C800c2d6f4ce
2016.01.01 19:53:09.303 4: CUL_send:  CUL_0                         Aw 08 11 4E 8002 27D0E2 349175 0101C800c2d6f4ce
2016.01.01 19:53:09.315 3: CUL_send:  CUL_0  id:349175 dDly:70
2016.01.01 19:53:09.318 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:09.320 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:09.330 5: Triggering Kueche_Terrassentuer (1 changes)
2016.01.01 19:53:09.332 5: Notify loop for Kueche_Terrassentuer closed
2016.01.01 19:53:09.337 5: Update structure 'FensterEG' to closed because device Kueche_Terrassentuer has changed
2016.01.01 19:53:09.341 5: Triggering FensterEG (1 changes)
2016.01.01 19:53:09.343 5: Notify loop for FensterEG closed
2016.01.01 19:53:09.400 5: CUL/RAW: /AFF5300010B7900114E800227D0E23491750101C800c2d6f4ce80
2016.01.01 19:53:09.403 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300010B7900114E800227D0E23491750101C800c2d6f4ce80
2016.01.01 19:53:09.404 4: CUL_Parse: CUL_0 AFF5300010B7900114E800227D0E23491750101C800c2d6f4ce80
2016.01.01 19:53:09.407 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:09.410 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:09.412 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:09.428 3: CUL_0: Unknown code :CUL_0, help me!
2016.01.01 19:53:09.505 5: CUL/RAW: /AFF5100010B8A000C4EA24134917527D0E2013C000E
2016.01.01 19:53:09.510 4: CUL_Parse: CUL_0  084995 A FF51 00547920 00 0C 4E A241 349175 27D0E2 013C00 -67
2016.01.01 19:53:09.513 5: CUL_0 dispatch A0C4EA24134917527D0E2013C00::-67:CUL_0
2016.01.01 19:53:09.520 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 322912F71815 for key 2
2016.01.01 19:53:09.522 5: CUL_0 sending As114EA00227D0E234917504322912F7181504
2016.01.01 19:53:09.525 4: CUL_send:  CUL_0                         Aw 0A 11 4E A002 27D0E2 349175 04322912F7181504
2016.01.01 19:53:09.537 3: CUL_send:  CUL_0  id:349175 dDly:87
2016.01.01 19:53:09.640 5: CUL/RAW: /AFF5300010B9700114EA00227D0E234917504322912F718150480
2016.01.01 19:53:09.644 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:09.645 4: CUL_Parse: CUL_0  085130 A FF53 00548024 00 11 4E A002 27D0E2 349175 04322912F7181504 -138
2016.01.01 19:53:09.772 5: CUL/RAW: /AFF5100010BAB00194EA20334917527D0E25F9F2D399A606F47C9E52DE9154384250A
2016.01.01 19:53:09.776 4: CUL_Parse: CUL_0  085262 A FF51 00548184 00 19 4E A203 349175 27D0E2 5F9F2D399A606F47C9E52DE915438425 -69
2016.01.01 19:53:09.779 5: CUL_0 dispatch A194EA20334917527D0E25F9F2D399A606F47C9E52DE915438425::-69:CUL_0
2016.01.01 19:53:09.786 5: CUL_HM VCCU_0 iv: 3c00
             decrypted cmd: 4EA24134917527D0E201
             original  cmd: 4EA24134917527D0E201
2016.01.01 19:53:09.788 4: CUL_HM VCCU_0 signature: good, authbytes: c8d32497
2016.01.01 19:53:09.801 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.01 19:53:09.805 5: CUL_0 sending As114E800227D0E23491750101C800c8d32497
2016.01.01 19:53:09.808 4: CUL_send:  CUL_0                         Aw 08 11 4E 8002 27D0E2 349175 0101C800c8d32497
2016.01.01 19:53:09.820 3: CUL_send:  CUL_0  id:349175 dDly:68
2016.01.01 19:53:09.822 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:09.824 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:09.905 5: CUL/RAW: /AFF5300010BB800114E800227D0E23491750101C800c8d3249780
2016.01.01 19:53:09.907 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300010BB800114E800227D0E23491750101C800c8d3249780
2016.01.01 19:53:09.908 4: CUL_Parse: CUL_0 AFF5300010BB800114E800227D0E23491750101C800c8d3249780
2016.01.01 19:53:09.911 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:09.915 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:09.916 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:09.932 3: CUL_0: Unknown code :CUL_0, help me!
2016.01.01 19:53:10.260 5: CUL/RAW: /AFF5100010BE8000C4EA24134917527D0E2013C000D
2016.01.01 19:53:10.264 4: CUL_Parse: CUL_0  085750 A FF51 00548672 00 0C 4E A241 349175 27D0E2 013C00 -67.5
2016.01.01 19:53:10.267 5: CUL_0 dispatch A0C4EA24134917527D0E2013C00::-67.5:CUL_0
2016.01.01 19:53:10.274 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 59FE4D0042F9 for key 2
2016.01.01 19:53:10.276 5: CUL_0 sending As114EA00227D0E23491750459FE4D0042F904
2016.01.01 19:53:10.278 4: CUL_send:  CUL_0                         Aw 0A 11 4E A002 27D0E2 349175 0459FE4D0042F904
2016.01.01 19:53:10.290 3: CUL_send:  CUL_0  id:349175 dDly:85
2016.01.01 19:53:10.392 5: CUL/RAW: /AFF5300010BF500114EA00227D0E23491750459FE4D0042F90480
2016.01.01 19:53:10.396 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:10.397 4: CUL_Parse: CUL_0  085883 A FF53 00548776 00 11 4E A002 27D0E2 349175 0459FE4D0042F904 -138
2016.01.01 19:53:10.523 5: CUL/RAW: /AFF5100010C0900194EA20334917527D0E2A0D096B5A55073C3077690762588D3F707
2016.01.01 19:53:10.527 4: CUL_Parse: CUL_0  086013 A FF51 00548936 00 19 4E A203 349175 27D0E2 A0D096B5A55073C3077690762588D3F7 -70.5
2016.01.01 19:53:10.530 5: CUL_0 dispatch A194EA20334917527D0E2A0D096B5A55073C3077690762588D3F7::-70.5:CUL_0
2016.01.01 19:53:10.537 5: CUL_HM VCCU_0 iv: 3c00
             decrypted cmd: 4EA24134917527D0E201
             original  cmd: 4EA24134917527D0E201
2016.01.01 19:53:10.538 4: CUL_HM VCCU_0 signature: good, authbytes: 20315a88
2016.01.01 19:53:10.552 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.01 19:53:10.555 5: CUL_0 sending As114E800227D0E23491750101C80020315a88
2016.01.01 19:53:10.558 4: CUL_send:  CUL_0                         Aw 08 11 4E 8002 27D0E2 349175 0101C80020315a88
2016.01.01 19:53:10.570 3: CUL_send:  CUL_0  id:349175 dDly:69
2016.01.01 19:53:10.573 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:10.574 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:10.656 5: CUL/RAW: /AFF5300010C1600114E800227D0E23491750101C80020315a8880
2016.01.01 19:53:10.659 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300010C1600114E800227D0E23491750101C80020315a8880
2016.01.01 19:53:10.660 4: CUL_Parse: CUL_0 AFF5300010C1600114E800227D0E23491750101C80020315a8880
2016.01.01 19:53:10.663 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:10.666 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:10.668 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:10.684 3: CUL_0: Unknown code :CUL_0, help me!
2016.01.01 19:53:11.484 5: JeeLink/RAW: /OK 9 40 1 4 31
2016.01.01 19:53:11.489 5: JeeLink/RAW: OK 9 40 1 4 31/ 106
2016.01.01 19:53:11.491 5: JeeLink_0 dispatch OK 9 40 1 4 31 106
2016.01.01 19:53:11.494 4: Ignoring Nachbar_1
2016.01.01 19:53:11.513 5: CUL/RAW: /AFF5100010C85000C4EA24134917527D0E2013C0005
2016.01.01 19:53:11.517 4: CUL_Parse: CUL_0  087003 A FF51 00549928 00 0C 4E A241 349175 27D0E2 013C00 -71.5
2016.01.01 19:53:11.520 5: CUL_0 dispatch A0C4EA24134917527D0E2013C00::-71.5:CUL_0
2016.01.01 19:53:11.527 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 6DF37D9361C1 for key 2
2016.01.01 19:53:11.529 5: CUL_0 sending As114EA00227D0E2349175046DF37D9361C104
2016.01.01 19:53:11.532 4: CUL_send:  CUL_0                         Aw 0B 11 4E A002 27D0E2 349175 046DF37D9361C104
2016.01.01 19:53:11.544 3: CUL_send:  CUL_0  id:349175 dDly:88
2016.01.01 19:53:11.648 5: CUL/RAW: /AFF5300010C9200114EA00227D0E2349175046DF37D9361C10480
2016.01.01 19:53:11.651 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:11.653 4: CUL_Parse: CUL_0  087138 A FF53 00550032 00 11 4E A002 27D0E2 349175 046DF37D9361C104 -138
2016.01.01 19:53:11.780 5: CUL/RAW: /AFF5100010CA600194EA20334917527D0E213386FA491FD718E8034DB74379E102B0E
2016.01.01 19:53:11.784 4: CUL_Parse: CUL_0  087270 A FF51 00550192 00 19 4E A203 349175 27D0E2 13386FA491FD718E8034DB74379E102B -67
2016.01.01 19:53:11.787 5: CUL_0 dispatch A194EA20334917527D0E213386FA491FD718E8034DB74379E102B::-67:CUL_0
2016.01.01 19:53:11.794 5: CUL_HM VCCU_0 iv: 3c00
             decrypted cmd: 4EA24134917527D0E201
             original  cmd: 4EA24134917527D0E201
2016.01.01 19:53:11.795 4: CUL_HM VCCU_0 signature: good, authbytes: c207ba26
2016.01.01 19:53:11.809 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.01 19:53:11.812 5: CUL_0 sending As114E800227D0E23491750101C800c207ba26
2016.01.01 19:53:11.815 4: CUL_send:  CUL_0                         Aw 08 11 4E 8002 27D0E2 349175 0101C800c207ba26
2016.01.01 19:53:11.827 3: CUL_send:  CUL_0  id:349175 dDly:68
2016.01.01 19:53:11.830 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:11.831 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:11.912 5: CUL/RAW: /AFF5300010CB300114E800227D0E23491750101C800c207ba2680
2016.01.01 19:53:11.915 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300010CB300114E800227D0E23491750101C800c207ba2680
2016.01.01 19:53:11.916 4: CUL_Parse: CUL_0 AFF5300010CB300114E800227D0E23491750101C800c207ba2680
2016.01.01 19:53:11.919 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:11.922 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:11.924 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:11.940 3: CUL_0: Unknown code :CUL_0, help me!
2016.01.01 19:53:13.773 5: CUL/RAW: /AFF5100010D9F000C4EA24134917527D0E2013C0010
2016.01.01 19:53:13.777 4: CUL_Parse: CUL_0  089263 A FF51 00552184 00 0C 4E A241 349175 27D0E2 013C00 -66
2016.01.01 19:53:13.780 5: CUL_0 dispatch A0C4EA24134917527D0E2013C00::-66:CUL_0
2016.01.01 19:53:13.787 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 7B379AC21A46 for key 2
2016.01.01 19:53:13.789 5: CUL_0 sending As114EA00227D0E2349175047B379AC21A4604
2016.01.01 19:53:13.791 4: CUL_send:  CUL_0                         Aw 0A 11 4E A002 27D0E2 349175 047B379AC21A4604
2016.01.01 19:53:13.803 3: CUL_send:  CUL_0  id:349175 dDly:83
2016.01.01 19:53:13.904 5: CUL/RAW: /AFF5300010DAC00114EA00227D0E2349175047B379AC21A460480
2016.01.01 19:53:13.908 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:13.909 4: CUL_Parse: CUL_0  089394 A FF53 00552288 00 11 4E A002 27D0E2 349175 047B379AC21A4604 -138
2016.01.01 19:53:14.034 5: CUL/RAW: /AFF5100010DC000194EA20334917527D0E259339D1EE8DDB2368CB62BE21723316211
2016.01.01 19:53:14.038 4: CUL_Parse: CUL_0  089524 A FF51 00552448 00 19 4E A203 349175 27D0E2 59339D1EE8DDB2368CB62BE217233162 -65.5
2016.01.01 19:53:14.041 5: CUL_0 dispatch A194EA20334917527D0E259339D1EE8DDB2368CB62BE217233162::-65.5:CUL_0
2016.01.01 19:53:14.048 5: CUL_HM VCCU_0 iv: 3c00
             decrypted cmd: 4EA24134917527D0E201
             original  cmd: 4EA24134917527D0E201
2016.01.01 19:53:14.049 4: CUL_HM VCCU_0 signature: good, authbytes: 0f02da02
2016.01.01 19:53:14.063 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.01 19:53:14.067 5: CUL_0 sending As114E800227D0E23491750101C8000f02da02
2016.01.01 19:53:14.070 4: CUL_send:  CUL_0                         Aw 08 11 4E 8002 27D0E2 349175 0101C8000f02da02
2016.01.01 19:53:14.082 3: CUL_send:  CUL_0  id:349175 dDly:70
2016.01.01 19:53:14.084 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:14.086 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:14.168 5: CUL/RAW: /AFF5300010DCD00114E800227D0E23491750101C8000f02da0280
2016.01.01 19:53:14.171 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300010DCD00114E800227D0E23491750101C8000f02da0280
2016.01.01 19:53:14.172 4: CUL_Parse: CUL_0 AFF5300010DCD00114E800227D0E23491750101C8000f02da0280
2016.01.01 19:53:14.175 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:14.178 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:14.179 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:14.195 3: CUL_0: Unknown code :CUL_0, help me!
2016.01.01 19:53:18.030 5: CUL/RAW: /AFF5100010FB3000C4EA24134917527D0E2013C000F
2016.01.01 19:53:18.034 4: CUL_Parse: CUL_0  093520 A FF51 00556440 00 0C 4E A241 349175 27D0E2 013C00 -66.5
2016.01.01 19:53:18.037 5: CUL_0 dispatch A0C4EA24134917527D0E2013C00::-66.5:CUL_0
2016.01.01 19:53:18.044 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge E90AF864B283 for key 2
2016.01.01 19:53:18.046 5: CUL_0 sending As114EA00227D0E234917504E90AF864B28304
2016.01.01 19:53:18.048 4: CUL_send:  CUL_0                         Aw 0A 11 4E A002 27D0E2 349175 04E90AF864B28304
2016.01.01 19:53:18.060 3: CUL_send:  CUL_0  id:349175 dDly:83
2016.01.01 19:53:18.160 5: CUL/RAW: /AFF5300010FC000114EA00227D0E234917504E90AF864B2830480
2016.01.01 19:53:18.164 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:18.165 4: CUL_Parse: CUL_0  093650 A FF53 00556544 00 11 4E A002 27D0E2 349175 04E90AF864B28304 -138
2016.01.01 19:53:18.290 5: CUL/RAW: /AFF5100010FD400194EA20334917527D0E2A3667EEEABF5E4F1816BB69738324C7F11
2016.01.01 19:53:18.295 4: CUL_Parse: CUL_0  093780 A FF51 00556704 00 19 4E A203 349175 27D0E2 A3667EEEABF5E4F1816BB69738324C7F -65.5
2016.01.01 19:53:18.298 5: CUL_0 dispatch A194EA20334917527D0E2A3667EEEABF5E4F1816BB69738324C7F::-65.5:CUL_0
2016.01.01 19:53:18.305 5: CUL_HM VCCU_0 iv: 3c00
             decrypted cmd: 4EA24134917527D0E201
             original  cmd: 4EA24134917527D0E201
2016.01.01 19:53:18.306 4: CUL_HM VCCU_0 signature: good, authbytes: 279200f6
2016.01.01 19:53:18.320 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.01 19:53:18.323 5: CUL_0 sending As114E800227D0E23491750101C800279200f6
2016.01.01 19:53:18.326 4: CUL_send:  CUL_0                         Aw 08 11 4E 8002 27D0E2 349175 0101C800279200f6
2016.01.01 19:53:18.338 3: CUL_send:  CUL_0  id:349175 dDly:70
2016.01.01 19:53:18.340 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:18.342 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:18.424 5: CUL/RAW: /AFF5300010FE100114E800227D0E23491750101C800279200f680
2016.01.01 19:53:18.427 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300010FE100114E800227D0E23491750101C800279200f680
2016.01.01 19:53:18.428 4: CUL_Parse: CUL_0 AFF5300010FE100114E800227D0E23491750101C800279200f680
2016.01.01 19:53:18.431 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:18.434 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:18.436 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:18.452 3: CUL_0: Unknown code :CUL_0, help me!
2016.01.01 19:53:18.532 5: CUL/RAW: /AFF5100010FF2000D4FA61034917527D0E20601000011
2016.01.01 19:53:18.536 4: CUL_Parse: CUL_0  094022 A FF51 00556944 00 0D 4F A610 349175 27D0E2 06010000 -65.5
2016.01.01 19:53:18.539 5: CUL_0 dispatch A0D4FA61034917527D0E206010000::-65.5:CUL_0
2016.01.01 19:53:18.546 5: CUL_HM Kueche_Terrassentuer requesting signature with challenge 539E9825D281 for key 2
2016.01.01 19:53:18.548 5: CUL_0 sending As114FA00227D0E234917504539E9825D28104
2016.01.01 19:53:18.551 4: CUL_send:  CUL_0                         Aw 0A 11 4F A002 27D0E2 349175 04539E9825D28104
2016.01.01 19:53:18.563 3: CUL_send:  CUL_0  id:349175 dDly:85
2016.01.01 19:53:18.663 5: CUL/RAW: /AFF5300010FFF00114FA00227D0E234917504539E9825D2810480
2016.01.01 19:53:18.667 3: CUL_ParseTsHM: CUL_0  id:349175 dhmSt:104
2016.01.01 19:53:18.668 4: CUL_Parse: CUL_0  094153 A FF53 00557048 00 11 4F A002 27D0E2 349175 04539E9825D28104 -138
2016.01.01 19:53:18.796 5: CUL/RAW: /AFF510001101300194FA20334917527D0E23B9B749E3FE5C43DC93D7831440C0C7E11
2016.01.01 19:53:18.800 4: CUL_Parse: CUL_0  094286 A FF51 00557208 00 19 4F A203 349175 27D0E2 3B9B749E3FE5C43DC93D7831440C0C7E -65.5
2016.01.01 19:53:18.803 5: CUL_0 dispatch A194FA20334917527D0E23B9B749E3FE5C43DC93D7831440C0C7E::-65.5:CUL_0
2016.01.01 19:53:18.810 5: CUL_HM VCCU_0 iv: 010000
             decrypted cmd: 4FA61034917527D0E206
             original  cmd: 4FA61034917527D0E206
2016.01.01 19:53:18.811 4: CUL_HM VCCU_0 signature: good, authbytes: 99f84ad6
2016.01.01 19:53:18.827 5: CUL_0 sending As0E4F800227D0E23491750099f84ad6
2016.01.01 19:53:18.830 4: CUL_send:  CUL_0                         Aw 08 0E 4F 8002 27D0E2 349175 0099f84ad6
2016.01.01 19:53:18.842 3: CUL_send:  CUL_0  id:349175 dDly:69
2016.01.01 19:53:18.845 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.01 19:53:18.847 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.01 19:53:18.925 5: CUL/RAW: /AFF5300011020000E4F800227D0E23491750099f84ad680
2016.01.01 19:53:18.928 2: CUL_ParseTsHM CUL_0 illegal message received: AFF5300011020000E4F800227D0E23491750099f84ad680
2016.01.01 19:53:18.929 4: CUL_Parse: CUL_0 AFF5300011020000E4F800227D0E23491750099f84ad680
2016.01.01 19:53:18.932 5: CUL_0 dispatch :CUL_0
2016.01.01 19:53:18.935 5: Triggering CUL_0 (1 changes)
2016.01.01 19:53:18.937 5: Notify loop for CUL_0 UNKNOWNCODE :CUL_0
2016.01.01 19:53:18.953 3: CUL_0: Unknown code :CUL_0, help me!

Offline mgernoth

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 645
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #27 am: 03 Januar 2016, 12:07:33 »
Hallo,

ich versuche das die Tage mal mit einem Testaufbau nachzustellen. Habe allerdings nur einen SCo rumfliegen, der nicht benutzt wird. Hoffe, dass der sich ebenso verhält.

Viele Grüße
  Michael

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #28 am: 07 Januar 2016, 13:40:40 »
Hallo Michael,

gibt es hierzu schon Neuigkeiten?
Da ich mir nun ein Piezo Lautsprecher mit dem HM-LC-SW1-BA-PCB gebastelt habe, bin ich sehr daran interssant, das die SCs signiert senden :-)

Da ich die Tage einige Intertechno Dosen gekauft habe und etwas mit ITv1/v3 experimentiert habe, bin ich derzeit mit der a-culfw (Version: a-culfw_1.20.01_build_176) unterwegs - da diese in der 433er Variante scheinbar ITv1/v3 und HM unterstützt.

Ich kann dir gerne weitere Logs etc. liefern.

Viele Grüße,

ambiman

Offline ambiman

  • Jr. Member
  • **
  • Beiträge: 80
Antw:HM-SEC-SC-2 und aesCommReq
« Antwort #29 am: 13 Januar 2016, 21:08:39 »
Hallo Martin, hallo Michael

ich habe mir den Code von CUL_HM.pm nochmals angeschaut und glaube das Problem gelöst zu haben - anbei der diff zum original CUL_HM:

2568c2568
<       if ($mh{md} =~ m/^(HM-SEC-SC|Roto_ZEL-STG-RM-FFK)$/){# SCs - depending on FW version - do not accept ACK only. Especially if peered
---
>       if ($mh{md} =~ m/^(HM-SEC-SC.*|Roto_ZEL-STG-RM-FFK)$/){# SCs - depending on FW version - do not accept ACK only. Especially if peered

Der HM-SEC-SC2 (zumindest mit der FW Version 2.4) scheint die erweiterten ACK-Messages nicht zu akzeptieren.
Nach der Änderung verhält sich der Sensor mit aesCommReq wie gewünscht:

2016.01.13 21:03:37.514 5: CUL/RAW: /A192CA20334917527D0E256DFBE62B05D9F87DBCB8FDF19E957BC03
2016.01.13 21:03:37.515 4: CUL_Parse: CUL_0 A 19 2C A203 349175 27D0E2 56DFBE62B05D9F87DBCB8FDF19E957BC03 -72.5
2016.01.13 21:03:37.519 5: CUL_0 dispatch A192CA20334917527D0E256DFBE62B05D9F87DBCB8FDF19E957BC::-72.5:CUL_0
2016.01.13 21:03:37.526 5: CUL_HM VCCU_0 iv: f700
             decrypted cmd: 2CA64134917527D0E201
             original  cmd: 2CA64134917527D0E201
2016.01.13 21:03:37.527 4: CUL_HM VCCU_0 signature: good, authbytes: 1a329f3d
2016.01.13 21:03:37.541 5: CUL_HM Kueche_Terrassentuer prep ACK for 01
2016.01.13 21:03:37.544 5: CUL_0 sending As0E2C800227D0E2349175001a329f3d
2016.01.13 21:03:37.546 5: CUL 349175 dly:70ms
2016.01.13 21:03:37.619 4: CUL_send:  CUL_0As 0E 2C 8002 27D0E2 349175 001a329f3d
2016.01.13 21:03:37.632 5: CUL_HM Kueche_Terrassentuer protEvent:CMDs_done
2016.01.13 21:03:37.634 5: CUL_HM Kueche_Terrassentuer sent ACK:2
2016.01.13 21:03:37.646 5: Triggering Kueche_Terrassentuer (7 changes)
2016.01.13 21:03:37.647 5: Notify loop for Kueche_Terrassentuer aesCommToDev: ok

Ich würde mich über eine Rückmeldung freuen - ggf. könnte das PM ja dauerhaft angepasst werden.

Viele Grüße,

ambiman

 

decade-submarginal