parent
912ac9fb87
commit
8e799db954
|
@ -188,7 +188,6 @@ def build_config(_config_file):
|
||||||
}})
|
}})
|
||||||
CONFIG['SYSTEMS'][section].update({'STATS': {
|
CONFIG['SYSTEMS'][section].update({'STATS': {
|
||||||
'CONNECTION': 'NO', # NO, RTPL_SENT, AUTHENTICATED, CONFIG-SENT, YES
|
'CONNECTION': 'NO', # NO, RTPL_SENT, AUTHENTICATED, CONFIG-SENT, YES
|
||||||
'CONNECTED': None,
|
|
||||||
'PINGS_SENT': 0,
|
'PINGS_SENT': 0,
|
||||||
'PINGS_ACKD': 0,
|
'PINGS_ACKD': 0,
|
||||||
'NUM_OUTSTANDING': 0,
|
'NUM_OUTSTANDING': 0,
|
||||||
|
|
|
@ -391,7 +391,6 @@ class HBSYSTEM(DatagramProtocol):
|
||||||
# Build the configuration data strcuture for the peer
|
# Build the configuration data strcuture for the peer
|
||||||
self._peers.update({_peer_id: {
|
self._peers.update({_peer_id: {
|
||||||
'CONNECTION': 'RPTL-RECEIVED',
|
'CONNECTION': 'RPTL-RECEIVED',
|
||||||
'CONNECTED': None,
|
|
||||||
'PINGS_RECEIVED': 0,
|
'PINGS_RECEIVED': 0,
|
||||||
'LAST_PING': time(),
|
'LAST_PING': time(),
|
||||||
'SOCKADDR': _sockaddr,
|
'SOCKADDR': _sockaddr,
|
||||||
|
@ -465,7 +464,6 @@ class HBSYSTEM(DatagramProtocol):
|
||||||
and self._peers[_peer_id]['SOCKADDR'] == _sockaddr:
|
and self._peers[_peer_id]['SOCKADDR'] == _sockaddr:
|
||||||
_this_peer = self._peers[_peer_id]
|
_this_peer = self._peers[_peer_id]
|
||||||
_this_peer['CONNECTION'] = 'YES'
|
_this_peer['CONNECTION'] = 'YES'
|
||||||
_this_peer['CONNECTED'] = time()
|
|
||||||
_this_peer['LAST_PING'] = time()
|
_this_peer['LAST_PING'] = time()
|
||||||
_this_peer['CALLSIGN'] = _data[8:16]
|
_this_peer['CALLSIGN'] = _data[8:16]
|
||||||
_this_peer['RX_FREQ'] = _data[16:25]
|
_this_peer['RX_FREQ'] = _data[16:25]
|
||||||
|
@ -630,7 +628,6 @@ class HBSYSTEM(DatagramProtocol):
|
||||||
logger.info('(%s) Sent options: (%s)', self._system, self._config['OPTIONS'])
|
logger.info('(%s) Sent options: (%s)', self._system, self._config['OPTIONS'])
|
||||||
else:
|
else:
|
||||||
self._stats['CONNECTION'] = 'YES'
|
self._stats['CONNECTION'] = 'YES'
|
||||||
self._stats['CONNECTED'] = time()
|
|
||||||
logger.info('(%s) Connection to Master Completed', self._system)
|
logger.info('(%s) Connection to Master Completed', self._system)
|
||||||
else:
|
else:
|
||||||
self._stats['CONNECTION'] = 'NO'
|
self._stats['CONNECTION'] = 'NO'
|
||||||
|
@ -641,7 +638,6 @@ class HBSYSTEM(DatagramProtocol):
|
||||||
if self._config['LOOSE'] or _peer_id == self._config['RADIO_ID']: # Validate the Radio_ID unless using loose validation
|
if self._config['LOOSE'] or _peer_id == self._config['RADIO_ID']: # Validate the Radio_ID unless using loose validation
|
||||||
logger.info('(%s) Repeater Options Accepted', self._system)
|
logger.info('(%s) Repeater Options Accepted', self._system)
|
||||||
self._stats['CONNECTION'] = 'YES'
|
self._stats['CONNECTION'] = 'YES'
|
||||||
self._stats['CONNECTED'] = time()
|
|
||||||
logger.info('(%s) Connection to Master Completed with options', self._system)
|
logger.info('(%s) Connection to Master Completed with options', self._system)
|
||||||
else:
|
else:
|
||||||
self._stats['CONNECTION'] = 'NO'
|
self._stats['CONNECTION'] = 'NO'
|
||||||
|
|
Loading…
Reference in New Issue