Add necessary pieces for Talker Alias DMRA
This commit is contained in:
parent
51ecece8dc
commit
d0d496b232
2
const.py
2
const.py
@ -50,6 +50,7 @@ HBPF_SLT_VHEAD = 0x1
|
|||||||
HBPF_SLT_VTERM = 0x2
|
HBPF_SLT_VTERM = 0x2
|
||||||
|
|
||||||
# HomeBrew Protocol Commands
|
# HomeBrew Protocol Commands
|
||||||
|
DMRA = b'DMRA'
|
||||||
DMRD = b'DMRD'
|
DMRD = b'DMRD'
|
||||||
MSTCL = b'MSTCL'
|
MSTCL = b'MSTCL'
|
||||||
MSTNAK = b'MSTNAK'
|
MSTNAK = b'MSTNAK'
|
||||||
@ -67,7 +68,6 @@ 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,10 +497,9 @@ 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:
|
elif _command == DMRA:
|
||||||
_peer_if = _data[4:8]
|
_peer_id = _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))
|
logger.info('(%s) Recieved DMR Talker Alias from peer %s, subscriber %s', self._system, self._peers[_peer_id]['CALLSIGN'], int_id(_rf_src))
|
||||||
|
|
||||||
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))
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
# Install the required support programs
|
|
||||||
apt-get install python3 python3-pip -y
|
|
||||||
pip3 install -r requirements.txt
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user