mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
00_TCM: internals added
git-svn-id: https://svn.fhem.de/fhem/trunk@5263 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bc04024555
commit
cf97460a4d
@ -314,16 +314,24 @@ TCM_Read($)
|
||||
# packet type RADIO
|
||||
$mdata =~ m/^(..)(.*)(........)(..)$/;
|
||||
my ($org, $d1, $id, $status) = ($1,$2,$3,$4);
|
||||
|
||||
my $repeatingCounter = hex substr($status, 1, 1);
|
||||
$odata =~ m/^(..)(........)(..)(..)$/;
|
||||
my ($RSSI, $receivingQuality) = (hex($3), "excellent");
|
||||
if ($RSSI > 87) {
|
||||
$receivingQuality = "bad";
|
||||
} elsif ($RSSI > 75) {
|
||||
$receivingQuality = "good";
|
||||
}
|
||||
my %addvals = (
|
||||
PacketType => $packetType,
|
||||
SubTelNum => hex($1),
|
||||
DestinationID => $2,
|
||||
RSSI => -hex($3),
|
||||
RSSI => -$RSSI,
|
||||
ReceivingQuality => $receivingQuality,
|
||||
RepeatingCounter => $repeatingCounter,
|
||||
SecurityLevel => hex($4),
|
||||
);
|
||||
$hash->{RSSI} = -hex($3);
|
||||
$hash->{RSSI} = -$RSSI;
|
||||
|
||||
if ($blockSenderID eq "own" && (hex $id) >= $baseID && (hex $id) <= $lastID) {
|
||||
Log3 $name, 5, "TCM $name Telegram from $id blocked.";
|
||||
|
Loading…
Reference in New Issue
Block a user