2013-07-11 20:50:38 -04:00
|
|
|
# Configuration file for IPSC.py -- each network has several parts, some of this is muted by the script once it runs, thus there are placeholders
|
|
|
|
NETWORK = {
|
|
|
|
'IPSC1': {
|
|
|
|
'LOCAL': {
|
2013-07-28 23:25:25 -04:00
|
|
|
'MODE': b'\x6A', # Decoded values below
|
|
|
|
'PEER_OPER': True,
|
|
|
|
'PEER_MODE': 'DIGITAL',
|
|
|
|
'TS1_LINK': True,
|
|
|
|
'TS2_LINK': True,
|
2013-07-11 20:50:38 -04:00
|
|
|
'FLAGS': b'\x00\x00\x00\x14',
|
|
|
|
'PORT': 50001,
|
2013-07-20 19:13:15 -04:00
|
|
|
'NUM_PEERS': 0,
|
2013-07-11 20:50:38 -04:00
|
|
|
'ALIVE_TIMER': 5, # Seconds between keep-alives and registration attempts
|
2013-07-20 09:28:52 -04:00
|
|
|
'MAX_MISSED': 5, # Maximum number of keep-alives missed before de-registration
|
2013-07-11 20:50:38 -04:00
|
|
|
'RADIO_ID': b'\x00\x00\x00\x0A',
|
2013-07-20 19:13:15 -04:00
|
|
|
'AUTH_KEY': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01',
|
2013-07-20 09:28:52 -04:00
|
|
|
'ENABLED': True,
|
|
|
|
'STATUS': {
|
|
|
|
'ACTIVE': False
|
|
|
|
}
|
2013-07-11 20:50:38 -04:00
|
|
|
},
|
|
|
|
'MASTER': {
|
|
|
|
'IP': '1.2.3.4',
|
|
|
|
'PORT': 50000,
|
2013-07-20 09:28:52 -04:00
|
|
|
'RADIO_ID': b'\x00\x00\x00\x00',
|
|
|
|
'MODE': b'\x00',
|
2013-07-28 23:25:25 -04:00
|
|
|
'PEER_OPER': False,
|
|
|
|
'PEER_MODE': '',
|
|
|
|
'TS1_LINK': False,
|
|
|
|
'TS2_LINK': False,
|
2013-07-20 09:28:52 -04:00
|
|
|
'FLAGS': b'\x00\x00\x00\x00',
|
2013-07-11 20:50:38 -04:00
|
|
|
'STATUS': {
|
2013-07-20 09:28:52 -04:00
|
|
|
'CONNECTED': False,
|
|
|
|
'PEER-LIST': False,
|
|
|
|
'KEEP_ALIVES_SENT': 0,
|
2013-07-11 20:50:38 -04:00
|
|
|
'KEEP_ALIVES_MISSED': 0,
|
2013-07-20 09:28:52 -04:00
|
|
|
'KEEP_ALIVES_OUTSTANDING': 0
|
2013-07-11 20:50:38 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
'PEERS': []
|
|
|
|
# each list item contains {
|
|
|
|
# 'IP': '100.200.1.1',
|
|
|
|
# 'PORT': 50000,
|
2013-07-20 09:28:52 -04:00
|
|
|
# 'RADIO_ID': b'\x00\x00\x00\x00',
|
|
|
|
# 'MODE': b'\x00,
|
2013-07-29 14:23:37 -04:00
|
|
|
# 'PEER_OPER': False,
|
|
|
|
# 'PEER_MODE': '',
|
|
|
|
# 'TS1_LINK': False,
|
|
|
|
# 'TS2_LINK': False,
|
2013-07-20 09:28:52 -04:00
|
|
|
# 'FLAGS': b'\x00\x00\x00\x00',
|
2013-07-11 20:50:38 -04:00
|
|
|
# 'STATUS': {
|
2013-07-20 09:28:52 -04:00
|
|
|
# 'CONNECTED': False,
|
|
|
|
# 'KEEP_ALIVES_SENT': 0,
|
|
|
|
# 'KEEP_ALIVES_MISSED': 0,
|
|
|
|
# 'KEEP_ALIVES_OUTSTANDING': 0
|
2013-07-11 20:50:38 -04:00
|
|
|
# }
|
|
|
|
# }
|
|
|
|
}
|
2013-07-20 09:28:52 -04:00
|
|
|
}
|