Begin work on Repeater Wake-Up
This commit is contained in:
parent
1c6a53194e
commit
ff02528f9f
21
bridge.py
21
bridge.py
@ -16,12 +16,15 @@ import binascii
|
||||
import dmrlink
|
||||
from dmrlink import IPSC, UnauthIPSC, NETWORK, networks, int_id, send_to_ipsc, dmr_nat, logger
|
||||
|
||||
# Notes and pieces of next steps...
|
||||
# RPT_WAKE_UP = b'\x85' + NETWORK[_network]['LOCAL']['RADIO_ID] + b'\x00\x00\x00\x01' + b'\x01' + b'\x01'
|
||||
# TS1 = 0, TS2 = 1
|
||||
|
||||
RULES = {
|
||||
'K0USY': {
|
||||
'GROUP_VOICE': [
|
||||
{'SRC_GROUP': b'\x00\x00\x03', 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x00\x03'},
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30'},
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2'}
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1, 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1},
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1, 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1}
|
||||
],
|
||||
'PRIVATE_VOICE': [
|
||||
],
|
||||
@ -32,9 +35,8 @@ RULES = {
|
||||
},
|
||||
'LAWRENCE': {
|
||||
'GROUP_VOICE': [
|
||||
{'SRC_GROUP': b'\x00\x00\x03', 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x00\x03'},
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x0C\x30'},
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2'}
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1, 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1},
|
||||
{'SRC_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1, 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1}
|
||||
],
|
||||
'PRIVATE_VOICE': [
|
||||
],
|
||||
@ -45,8 +47,8 @@ RULES = {
|
||||
},
|
||||
'TEST': {
|
||||
'GROUP_VOICE': [
|
||||
{'SRC_GROUP': b'\x00\x00\xD2', 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x0C\x30'},
|
||||
{'SRC_GROUP': b'\x00\x00\xD2', 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30'}
|
||||
{'SRC_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1, 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1},
|
||||
{'SRC_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1, 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1}
|
||||
],
|
||||
'PRIVATE_VOICE': [
|
||||
],
|
||||
@ -63,9 +65,6 @@ class bridgeIPSC(IPSC):
|
||||
IPSC.__init__(self, *args, **kwargs)
|
||||
self.ACTIVE_CALLS = []
|
||||
|
||||
#def datagramReceived(self, data, (host, port)):
|
||||
# print(h(data))
|
||||
|
||||
|
||||
#************************************************
|
||||
# CALLBACK FUNCTIONS FOR USER PACKET TYPES
|
||||
|
Loading…
Reference in New Issue
Block a user