Gracefuly acknowledge DMRA packets

This commit is contained in:
Simon 2021-01-18 14:28:37 +00:00
parent 76927ebf95
commit f671a9bc51
2 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,7 @@ RPTC = b'RPTC'
RPTP = b'RPTP'
RPTA = b'RPTA'
RPTO = b'RPTO'
DMRA = b'DMRA'
# Higheset peer ID permitted by HBP

View File

@ -552,6 +552,10 @@ class HBSYSTEM(DatagramProtocol):
else:
self.transport.write(b''.join([MSTNAK, _peer_id]), _sockaddr)
logger.warning('(%s) Ping from Radio ID that is not logged in: %s', self._system, int_id(_peer_id))
elif _command == DMRA:
_peer_id = _data[4:8]
logger.info('(%s) Peer has sent Talker Alias packet %s', self._system, _data)
else:
logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, _data)