Add DMRA Framework
This commit is contained in:
parent
ce494a4a18
commit
51ecece8dc
1
const.py
1
const.py
@ -67,6 +67,7 @@ RPTC = b'RPTC'
|
|||||||
RPTP = b'RPTP'
|
RPTP = b'RPTP'
|
||||||
RPTA = b'RPTA'
|
RPTA = b'RPTA'
|
||||||
RPTO = b'RPTO'
|
RPTO = b'RPTO'
|
||||||
|
DMRA = b'DMRA'
|
||||||
|
|
||||||
|
|
||||||
# Higheset peer ID permitted by HBP
|
# Higheset peer ID permitted by HBP
|
||||||
|
@ -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:])
|
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)
|
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:
|
else:
|
||||||
logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, ahex(_data))
|
logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, ahex(_data))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user