mirror of
https://github.com/ShaYmez/hblink3.git
synced 2024-12-22 09:21:01 -05:00
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'
|
||||
RPTA = b'RPTA'
|
||||
RPTO = b'RPTO'
|
||||
DMRA = b'DMRA'
|
||||
|
||||
|
||||
# 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:])
|
||||
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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user