[gelöst] Class CONFIGURATION V1: get <device> config <d> liefert falsche Werte

Begonnen von krikan, 01 Mai 2015, 12:12:48

Vorheriges Thema - Nächstes Thema

krikan

Bei meinen Tests an der Sirene DSD31 habe ich festgestellt, dass ich auf
get <device> config 80
falsche Rückgabewerte bekomme. Anscheinend wird die "size" im Report der V1 nicht korrekt ausgewertet.

Bei Abfrage von
get Wave_SWITCH_BINARY_6 80
erhalte ich folgende falsche Ausgaben:
Parameterwert von 1:
config_80:16777216
Parameterwert von 2:
config_80:33554432

Das zugehörige Log:
2015.05.01 11:46:19 2: ZWave set ZWave_SWITCH_BINARY_6 configByte
2015.05.01 11:46:19 5: SW: 010c0013060570045001000506c5
2015.05.01 11:46:19 5: ZWDongle/RAW: /060104011301e8
2015.05.01 11:46:19 5: SW: 06
2015.05.01 11:46:19 5: ZWDongle_Read ZWDongle_0: 011301
2015.05.01 11:46:19 5: ZWDongle_0 dispatch 011301
2015.05.01 11:46:19 5: ZWDongle/RAW: /010500130600ef
2015.05.01 11:46:19 5: SW: 06
2015.05.01 11:46:19 5: ZWDongle_Read ZWDongle_0: 00130600
2015.05.01 11:46:19 5: ZWDongle_0 dispatch 00130600
2015.05.01 11:46:19 4: ZWDongle_0 CMD:ZW_SEND_DATA ID:00 ARG:
2015.05.01 11:46:19 4: ZWDongle_0 transmit OK for 06
2015.05.01 11:46:29 2: ZWave get ZWave_SWITCH_BINARY_6 config
2015.05.01 11:46:29 5: SW: 01090013060370055005c0
2015.05.01 11:46:29 5: ZWDongle/RAW: /060104011301e8
2015.05.01 11:46:29 5: SW: 06
2015.05.01 11:46:29 5: ZWDongle_Read ZWDongle_0: 011301
2015.05.01 11:46:29 5: ZWDongle_0 dispatch 011301
2015.05.01 11:46:29 5: ZWDongle/RAW: /010e00040006087006500100000000dc
2015.05.01 11:46:29 5: SW: 06
2015.05.01 11:46:29 5: ZWDongle_Read ZWDongle_0: 00040006087006500100000000
2015.05.01 11:46:29 4: ZWDongle_0 CMD:APPLICATION_COMMAND_HANDLER ID:06 ARG:087006500100000000
2015.05.01 11:46:37 2: ZWave set ZWave_SWITCH_BINARY_6 configByte
2015.05.01 11:46:37 5: SW: 010c0013060570045001010506c4
2015.05.01 11:46:38 5: ZWDongle/RAW: /060104011301e8
2015.05.01 11:46:38 5: SW: 06
2015.05.01 11:46:38 5: ZWDongle_Read ZWDongle_0: 011301
2015.05.01 11:46:38 5: ZWDongle_0 dispatch 011301
2015.05.01 11:46:38 5: ZWDongle/RAW: /010500130600ef
2015.05.01 11:46:38 5: SW: 06
2015.05.01 11:46:38 5: ZWDongle_Read ZWDongle_0: 00130600
2015.05.01 11:46:38 5: ZWDongle_0 dispatch 00130600
2015.05.01 11:46:38 4: ZWDongle_0 CMD:ZW_SEND_DATA ID:00 ARG:
2015.05.01 11:46:38 4: ZWDongle_0 transmit OK for 06
2015.05.01 11:46:43 2: ZWave get ZWave_SWITCH_BINARY_6 config
2015.05.01 11:46:43 5: SW: 01090013060370055005c0
2015.05.01 11:46:43 5: ZWDongle/RAW: /06
2015.05.01 11:46:43 5: ZWDongle/RAW: /0104011301e8
2015.05.01 11:46:43 5: SW: 06
2015.05.01 11:46:43 5: ZWDongle_Read ZWDongle_0: 011301
2015.05.01 11:46:43 5: ZWDongle_0 dispatch 011301
2015.05.01 11:46:43 5: ZWDongle/RAW: /010500130100e8
2015.05.01 11:46:43 5: SW: 06
2015.05.01 11:46:43 5: ZWDongle_Read ZWDongle_0: 00130100
2015.05.01 11:46:43 5: ZWDongle_0 dispatch 00130100
2015.05.01 11:46:43 4: ZWDongle_0 CMD:ZW_SEND_DATA ID:00 ARG:
2015.05.01 11:46:43 4: ZWDongle_0 transmit OK for 01
2015.05.01 11:46:43 5: ZWDongle/RAW: /010e00040006087006500101000000dd
2015.05.01 11:46:43 5: SW: 06
2015.05.01 11:46:43 5: ZWDongle_Read ZWDongle_0: 00040006087006500101000000
2015.05.01 11:46:43 4: ZWDongle_0 CMD:APPLICATION_COMMAND_HANDLER ID:06 ARG:087006500101000000
2015.05.01 11:46:52 2: ZWave set ZWave_SWITCH_BINARY_6 configByte
2015.05.01 11:46:52 5: SW: 010c0013060570045001020506c7
2015.05.01 11:46:53 5: ZWDongle/RAW: /060104011301e8
2015.05.01 11:46:53 5: SW: 06
2015.05.01 11:46:53 5: ZWDongle_Read ZWDongle_0: 011301
2015.05.01 11:46:53 5: ZWDongle_0 dispatch 011301
2015.05.01 11:46:53 5: ZWDongle/RAW: /010500130600ef
2015.05.01 11:46:53 5: SW: 06
2015.05.01 11:46:53 5: ZWDongle_Read ZWDongle_0: 00130600
2015.05.01 11:46:53 5: ZWDongle_0 dispatch 00130600
2015.05.01 11:46:53 4: ZWDongle_0 CMD:ZW_SEND_DATA ID:00 ARG:
2015.05.01 11:46:53 4: ZWDongle_0 transmit OK for 06
2015.05.01 11:47:08 2: ZWave get ZWave_SWITCH_BINARY_6 config
2015.05.01 11:47:08 5: SW: 01090013060370055005c0
2015.05.01 11:47:08 5: ZWDongle/RAW: /06
2015.05.01 11:47:08 5: ZWDongle/RAW: /0104011301e8
2015.05.01 11:47:08 5: SW: 06
2015.05.01 11:47:08 5: ZWDongle_Read ZWDongle_0: 011301
2015.05.01 11:47:08 5: ZWDongle_0 dispatch 011301
2015.05.01 11:47:09 5: ZWDongle/RAW: /010500130200eb
2015.05.01 11:47:09 5: SW: 06
2015.05.01 11:47:09 5: ZWDongle_Read ZWDongle_0: 00130200
2015.05.01 11:47:09 5: ZWDongle_0 dispatch 00130200
2015.05.01 11:47:09 4: ZWDongle_0 CMD:ZW_SEND_DATA ID:00 ARG:
2015.05.01 11:47:09 4: ZWDongle_0 transmit OK for 02
2015.05.01 11:47:09 5: ZWDongle/RAW: /010e00040006087006500102000000de
2015.05.01 11:47:09 5: SW: 06
2015.05.01 11:47:09 5: ZWDongle_Read ZWDongle_0: 00040006087006500102000000
2015.05.01 11:47:09 4: ZWDongle_0 CMD:APPLICATION_COMMAND_HANDLER ID:06 ARG:087006500102000000


Ob Korrekturbedarf im Code besteht und wie ich das ohne schädliche Auswirkungen ändern könnte, weiß ich leider nicht.
Wenn ich weitere Test durchführen soll, dann mache ich das gerne.


rudolfkoenig

Dein Geraet meldet den Wert "02000000" mit Laenge 1.
FHEM hat bisher die Laenge ignoriert, das habe ich hiermit geaendert.

Das ZWave Protokoll wurde von jemanden mit Laengenangaben-Fetischismus entworfen, in dieser Nachricht gibt es 3: eine fuer die gesamte ZWave-Nachricht (0e), eine fuer den Report-Teil (08), und eine fuer den Wert (01). Wozu die Zweite und Dritte gut ist, ist mir ein Raetsel.