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
|
import dmrlink
|
||||||
from dmrlink import IPSC, UnauthIPSC, NETWORK, networks, int_id, send_to_ipsc, dmr_nat, logger
|
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 = {
|
RULES = {
|
||||||
'K0USY': {
|
'K0USY': {
|
||||||
'GROUP_VOICE': [
|
'GROUP_VOICE': [
|
||||||
{'SRC_GROUP': b'\x00\x00\x03', 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x00\x03'},
|
{'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', 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30'},
|
{'SRC_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1, 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1}
|
||||||
{'SRC_GROUP': b'\x00\x0C\x30', 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2'}
|
|
||||||
],
|
],
|
||||||
'PRIVATE_VOICE': [
|
'PRIVATE_VOICE': [
|
||||||
],
|
],
|
||||||
@ -32,9 +35,8 @@ RULES = {
|
|||||||
},
|
},
|
||||||
'LAWRENCE': {
|
'LAWRENCE': {
|
||||||
'GROUP_VOICE': [
|
'GROUP_VOICE': [
|
||||||
{'SRC_GROUP': b'\x00\x00\x03', 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x00\x03'},
|
{'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', 'DST_NET': 'K0USY', 'DST_GROUP': b'\x00\x0C\x30'},
|
{'SRC_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1, 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1}
|
||||||
{'SRC_GROUP': b'\x00\x0C\x30', 'DST_NET': 'TEST', 'DST_GROUP': b'\x00\x00\xD2'}
|
|
||||||
],
|
],
|
||||||
'PRIVATE_VOICE': [
|
'PRIVATE_VOICE': [
|
||||||
],
|
],
|
||||||
@ -45,8 +47,8 @@ RULES = {
|
|||||||
},
|
},
|
||||||
'TEST': {
|
'TEST': {
|
||||||
'GROUP_VOICE': [
|
'GROUP_VOICE': [
|
||||||
{'SRC_GROUP': b'\x00\x00\xD2', 'DST_NET': 'K0USY', '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', 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30'}
|
{'SRC_GROUP': b'\x00\x00\xD2', 'SRC_TS': 1, 'DST_NET': 'LAWRENCE', 'DST_GROUP': b'\x00\x0C\x30', 'SRC_TS': 1}
|
||||||
],
|
],
|
||||||
'PRIVATE_VOICE': [
|
'PRIVATE_VOICE': [
|
||||||
],
|
],
|
||||||
@ -63,9 +65,6 @@ class bridgeIPSC(IPSC):
|
|||||||
IPSC.__init__(self, *args, **kwargs)
|
IPSC.__init__(self, *args, **kwargs)
|
||||||
self.ACTIVE_CALLS = []
|
self.ACTIVE_CALLS = []
|
||||||
|
|
||||||
#def datagramReceived(self, data, (host, port)):
|
|
||||||
# print(h(data))
|
|
||||||
|
|
||||||
|
|
||||||
#************************************************
|
#************************************************
|
||||||
# CALLBACK FUNCTIONS FOR USER PACKET TYPES
|
# CALLBACK FUNCTIONS FOR USER PACKET TYPES
|
||||||
|
Loading…
Reference in New Issue
Block a user