mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
90_SIGNALduino_un.pm: support tracing geiger rohrmotor signals
git-svn-id: https://svn.fhem.de/fhem/trunk@19858 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
46f4e9325f
commit
980effb074
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 90_SIGNALduino_un.pm: support tracing geiger rohrmotor signals
|
||||
- change: 00_SIGNALduino.pm: v3.4.0
|
||||
Option to reconstruct last bit of transmission in MU and MS signals
|
||||
if there is enough data to detect it.
|
||||
|
@ -166,35 +166,6 @@ SIGNALduino_un_Parse($$)
|
||||
Log3 $hash, 4, "$name decoded protocolid: 7 ($SensorTyp / type=$type) mode=$sendMode, sensor id=$id, channel=$channel, temp=$temp, bat=$bat\n" ;
|
||||
|
||||
|
||||
} elsif ($protocol == "78" && length($bitData)>=14) ## geiger rohrmotor
|
||||
{
|
||||
my %bintotristate=(
|
||||
"00" => "0",
|
||||
"10" => "F",
|
||||
"11" => "1"
|
||||
);
|
||||
|
||||
my $tscode;
|
||||
for (my $n=0; $n<length($bitData); $n=$n+2) {
|
||||
$tscode = $tscode . $bintotristate{substr($bitData,$n,2)};
|
||||
}
|
||||
|
||||
|
||||
Log3 $hash, 4, "geiger message converted to tristate code: " . $tscode;
|
||||
#Dispatch($hash, $tscode,undef);
|
||||
|
||||
|
||||
} elsif ($protocol == "88" && length($rawData) == 17) {
|
||||
my $serial = substr($bitData,32,28);
|
||||
my $buttonbits = substr($bitData,60,4);
|
||||
|
||||
my %buttons = (
|
||||
"0010" => "hoch",
|
||||
"1001" => "runter",
|
||||
"1000" => "stop"
|
||||
);
|
||||
|
||||
Log3 $hash, 4, "$name: Roto shutter - Serialbits=$serial Serial=".oct( "0b$serial" )." Buttonbits=$buttonbits Button=$buttons{$buttonbits}";
|
||||
}
|
||||
|
||||
##############################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user