00_ZWDongle: a command is acked if ZW_SEND_DATA ans answer or request is received (Forum #37418)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8917 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-07-08 13:17:28 +00:00
parent 2121e36fb8
commit a3d2fcdede
2 changed files with 3 additions and 3 deletions

View File

@@ -694,8 +694,8 @@ ZWDongle_Read($@)
DevIo_SimpleWrite($hash, "06", 1); # Send ACK DevIo_SimpleWrite($hash, "06", 1); # Send ACK
# SEND_DATA answer: remove message from SendStack. TODO: check callbackId # SEND_DATA answer: remove message from SendStack. TODO: check callbackId
if($msg =~ m/^0013..(..)/ ){ if($msg =~ m/^0(0|1)13..(..)/ ){
my $m = $1; my ($r, $m) = ($1, $2);
my %msg = ('00'=>'OK', '01'=>'NO_ACK', '02'=>'FAIL', my %msg = ('00'=>'OK', '01'=>'NO_ACK', '02'=>'FAIL',
'03'=>'NOT_IDLE', '04'=>'NOROUTE' ); '03'=>'NOT_IDLE', '04'=>'NOROUTE' );
$m = $msg{$m} ? $msg{$m} : "UNKNOWN $m"; $m = $msg{$m} ? $msg{$m} : "UNKNOWN $m";

View File

@@ -1508,7 +1508,7 @@ ZWave_secureInit(@)
return undef; # No Event/Reading return undef; # No Event/Reading
} elsif($status == 3) { } elsif($status == 3) {
IOWrite($hash, "secKey ACK", ""); #IOWrite($hash, "secKey ACK", "");
ZWave_Set($hash, $name, "secNonce"); ZWave_Set($hash, $name, "secNonce");
return undef; # No Event/Reading return undef; # No Event/Reading