From 0c12df00a753773f6f79047a3f752b351eccdf3e Mon Sep 17 00:00:00 2001 From: Michael Eckhoff Date: Wed, 4 Aug 2021 23:08:52 -0500 Subject: [PATCH 1/2] Add log entry for RPTSBKN Site Beacon. --- const.py | 2 ++ hblink.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/const.py b/const.py index f873a94..926c4b7 100755 --- a/const.py +++ b/const.py @@ -68,6 +68,8 @@ RPTC = b'RPTC' RPTP = b'RPTP' RPTA = b'RPTA' RPTO = b'RPTO' +RPTS = b'RPTS' +RPTSBKN = b'RPTSBKN' # Higheset peer ID permitted by HBP diff --git a/hblink.py b/hblink.py index 7896396..2236335 100755 --- a/hblink.py +++ b/hblink.py @@ -695,6 +695,10 @@ class HBSYSTEM(DatagramProtocol): self._stats['CONNECTION'] = 'NO' logger.info('(%s) MSTCL Recieved', self._system) + elif _command == RPTS: + if _data[:7] == RPTSBKN: + logger.info('(%s) Recieved Site Beacon with Repeater ID: \'%s\'', self._system, int_id(_data[7:])) + else: logger.error('(%s) Received an invalid command in packet: %s', self._system, ahex(_data)) From 8d763c279ce7290979f45af007838ecbde0fac23 Mon Sep 17 00:00:00 2001 From: K5MRE Date: Wed, 4 Aug 2021 23:28:38 -0500 Subject: [PATCH 2/2] Update hblink.py Fix spelling error on previous commit. --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 2236335..f586ef3 100755 --- a/hblink.py +++ b/hblink.py @@ -697,7 +697,7 @@ class HBSYSTEM(DatagramProtocol): elif _command == RPTS: if _data[:7] == RPTSBKN: - logger.info('(%s) Recieved Site Beacon with Repeater ID: \'%s\'', self._system, int_id(_data[7:])) + logger.info('(%s) Received Site Beacon with Repeater ID: %s', self._system, int_id(_data[7:])) else: logger.error('(%s) Received an invalid command in packet: %s', self._system, ahex(_data))