Add DMRA Framework

This commit is contained in:
n0mjs710 2020-10-13 18:59:28 -05:00
parent ce494a4a18
commit 51ecece8dc
2 changed files with 6 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

@ -497,6 +497,11 @@ class HBSYSTEM(DatagramProtocol):
logger.info('(%s) Peer %s (%s) has send options: %s', self._system, self._peers[_peer_id]['CALLSIGN'], int_id(_peer_id), _data[8:])
self.transport.write(b''.join([RPTACK, _peer_id]), _sockaddr)
elif _command == DMRA:
_peer_if = _data[4:8]
logger.info('(%s) Recieved DMR Talker Alias from peer %s, subscriber %s', self._system, self._peers[_peer_id]['CALLSIGN'], int_id(_peer_id))
else:
logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, ahex(_data))