Gracefuly acknowledge DMRA packets
This commit is contained in:
parent
76927ebf95
commit
f671a9bc51
1
const.py
1
const.py
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user