From cd9d53f32dac38fd3bb1de4253a5a484f8c8ba71 Mon Sep 17 00:00:00 2001 From: martinp876 Date: Sat, 24 May 2014 05:59:45 +0000 Subject: [PATCH] stop SC cont send, vccu work with HMUSB git-svn-id: https://svn.fhem.de/fhem/trunk@5948 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index eb3365f81..243358bfe 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -750,13 +750,15 @@ sub CUL_HM_hmInitMsgUpdt($){ #update device init msg for HMLAN my $oldChn = $hash->{helper}{io}{newChn}; my @p = unpack 'A8A2A*',$oldChn; - if($hash->{helper}{q}{qReqConf} || - $hash->{helper}{q}{qReqStat} || - $hash->{helper}{prt}{sProc}){ + #if($hash->{helper}{q}{qReqConf} || + # $hash->{helper}{q}{qReqStat} || + # $hash->{helper}{prt}{sProc}){ + if($hash->{helper}{prt}{sProc}){ $p[1] |= 2; } else{ - $p[1] &= 0xFD; + $p[1] &= 0xFD;# remove this Bit if no more data to send + # otherwise could cause continous send (e.g. from SC } $hash->{helper}{io}{newChn} = sprintf("%s%02X%s",@p); if (($hash->{helper}{io}{newChn} ne $oldChn) @@ -6386,11 +6388,10 @@ sub CUL_HM_assignIO($){ #check and assign IO foreach my $iom (grep !/^$/,@ios){ if ($ccuIOs =~ m /$iom/){ if ( !$defs{$iom} - || $defs{$iom}{STATE} !~ m/^(opened|Initialized)$/ # we need to queue - ||(defined $defs{$iom}{XmitOpen} && $defs{$iom}{XmitOpen} == 0)){#overload, dont send + ||( $defs{$iom}{STATE} ne "Initialized" # we need to queue + && InternalVal($iom,"XmitOpen",0) == 0)){#overload, dont send next; } - Log 1,"General change $hn io to $iom" if($hash->{IODev} ne $defs{$iom}); if ( $hash->{IODev} && $hash->{IODev} ne $defs{$iom} && $hash->{IODev}->{TYPE}