mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-29 17:37:09 +00:00
70_PylonLowVoltage: contrib V0.1.4
git-svn-id: https://svn.fhem.de/fhem/trunk@27901 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
17afb18772
commit
4236e9aeed
@ -461,8 +461,6 @@ sub manageUpdate {
|
||||
|
||||
Log3 ($name, 4, "$name - start request cycle to battery number >$hash->{BATADDRESS}< at host:port $hash->{HOST}:$hash->{PORT}");
|
||||
|
||||
my $serial = Serialize ({ name => $name, timeout => $timeout, readings => $readings});
|
||||
|
||||
if ($timeout < 1.0) {
|
||||
BlockingKill ($hash->{HELPER}{BKRUNNING}) if(defined $hash->{HELPER}{BKRUNNING});
|
||||
startUpdate (Serialize ( { name => $name, timeout => $timeout, readings => $readings} ));
|
||||
@ -476,7 +474,7 @@ sub manageUpdate {
|
||||
return;
|
||||
}
|
||||
|
||||
my $blto = sprintf "%0d", ($timeout + 10);
|
||||
my $blto = sprintf "%.0f", ($timeout + 10);
|
||||
|
||||
$hash->{HELPER}{BKRUNNING} = BlockingCall ( "FHEM::PylonLowVoltage::startUpdate",
|
||||
Serialize ( { block => 1, name => $name, timeout => $timeout, readings => $readings} ),
|
||||
@ -792,7 +790,7 @@ sub _callManufacturerInfo {
|
||||
|
||||
my $BatteryHex = substr ($res, 13, 20);
|
||||
$readings->{batteryType} = pack ("H*", $BatteryHex);
|
||||
$readings->{softwareVersion} = 'V'.hex (substr ($res, 33, 2)).'.'.hex (substr ($res, 35, 2)); #
|
||||
# $readings->{softwareVersion} = 'V'.hex (substr ($res, 33, 2)).'.'.hex (substr ($res, 35, 2)); # unklar
|
||||
my $ManufacturerHex = substr ($res, 37, 40);
|
||||
$readings->{Manufacturer} = pack ("H*", $ManufacturerHex);
|
||||
|
||||
@ -1495,7 +1493,6 @@ management system via the RS485 interface.
|
||||
<li><b>paramModuleUnderVoltLimit</b><br> System parameter undervoltage limit (V) of the battery module (protection limit) </li>
|
||||
<li><b>protocolVersion</b><br> PYLON low voltage RS485 protocol version </li>
|
||||
<li><b>serialNumber</b><br> Serial number </li>
|
||||
<li><b>softwareVersion</b><br> --------- </li>
|
||||
</ul>
|
||||
<br><br>
|
||||
|
||||
@ -1661,7 +1658,6 @@ Batteriemanagementsystem über die RS485-Schnittstelle zur Verfügung stellt.
|
||||
<li><b>paramModuleUnderVoltLimit</b><br> Systemparameter Unterspannungsgrenze (V) des Batteriemoduls (Schutzgrenze) </li>
|
||||
<li><b>protocolVersion</b><br> PYLON low voltage RS485 Prokollversion </li>
|
||||
<li><b>serialNumber</b><br> Seriennummer </li>
|
||||
<li><b>softwareVersion</b><br> ----------------------------------- </li>
|
||||
</ul>
|
||||
<br><br>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user