From 287b08c81dfc62c2ea26a868e64e9355f6374df4 Mon Sep 17 00:00:00 2001 From: martinp876 <> Date: Fri, 19 Feb 2016 18:57:01 +0000 Subject: [PATCH] CUL_HM: fwupdate git-svn-id: https://svn.fhem.de/fhem/trunk@10878 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index c2f8beb94..a9c070e0d 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -2031,7 +2031,7 @@ sub CUL_HM_Parse($$) {######################################################### push @evtEt,[$mh{devH},1,"sabotageError:".(($err&0x04) ? "on":"off")]; push @evtEt,[$mh{devH},1,"battery:".(($err&0x08)?"critical":($err&0x80?"low":"ok"))]; } - elsif ($mh{md} =~ m /HM-LC-SW.-BA-PCB/){ + elsif ($mh{md} =~ m /(HM-LC-SW.-BA-PCB|HM-Dis-TD-T)/){ push @evtEt,[$mh{devH},1,"battery:" . (($err&0x80) ? "low" : "ok" )]; } } @@ -4998,6 +4998,12 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++ } } elsif($cmd eq "fwUpdate") { ################################################# + if ($a[2] eq "onlyEnterBootLoader") { + Log3 $name,2,"CUL_HM entering bootloader for $name"; + CUL_HM_SndCmd($hash, sprintf("%02X",$modules{CUL_HM}{helper}{updateNbr}) + ."3011$id${dst}CA"); + return ("",1); + } return "no filename given" if (!$a[2]); # return "only thru CUL " if (!$hash->{IODev}->{TYPE} # ||($hash->{IODev}->{TYPE} ne "CUL")); @@ -8743,6 +8749,14 @@ sub CUL_HM_tempListTmpl(@) { ##################################################
  • deviceRename <newName>
    rename the device and all its channels.
  • +
  • fwUpdate [onlyEnterBootLoader] <filename> [<waitTime>]
    + update Fw of the device. User must provide the appropriate file. + waitTime can be given optionally. In case the device needs to be set to + FW update mode manually this is the time the system will wait.
    + "onlyEnterBootLoader" tells the device to enter the boot loader so it can be + flashed using the eq3 firmware update tool. Mainly useful for flush-mounted devices + in FHEM environments solely using HM-LAN adapters. +

  • @@ -9038,10 +9052,6 @@ sub CUL_HM_tempListTmpl(@) { ##################################################
  • Climate-Control (HM-CC-RT-DN|HM-CC-RT-DN-BoM) @@ -10293,10 +10312,6 @@ sub CUL_HM_tempListTmpl(@) { ##################################################
  • Climate-Control (HM-CC-TC)