|
|
|
@ -1419,7 +1419,7 @@ class routerOBP(OPENBRIDGE):
|
|
|
|
#Assemble transmit HBP packet header
|
|
|
|
#Assemble transmit HBP packet header
|
|
|
|
_tmp_data = b''.join([_data[:15], _tmp_bits.to_bytes(1, 'big'), _data[16:20]])
|
|
|
|
_tmp_data = b''.join([_data[:15], _tmp_bits.to_bytes(1, 'big'), _data[16:20]])
|
|
|
|
_tmp_data = b''.join([_tmp_data, dmrpkt])
|
|
|
|
_tmp_data = b''.join([_tmp_data, dmrpkt])
|
|
|
|
systems[_d_system].send_system(_tmp_data,_hops)
|
|
|
|
systems[_d_system].send_system(_tmp_data)
|
|
|
|
logger.info('(%s) UNIT Data Bridged to HBP on slot 1: %s DST_ID: %s',self._system,_d_system,_int_dst_id)
|
|
|
|
logger.info('(%s) UNIT Data Bridged to HBP on slot 1: %s DST_ID: %s',self._system,_d_system,_int_dst_id)
|
|
|
|
if CONFIG['REPORTS']['REPORT']:
|
|
|
|
if CONFIG['REPORTS']['REPORT']:
|
|
|
|
systems[_d_system]._report.send_bridgeEvent('UNIT DATA,START,TX,{},{},{},{},{},{}'.format(_d_system, int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), 1, _int_dst_id).encode(encoding='utf-8', errors='ignore'))
|
|
|
|
systems[_d_system]._report.send_bridgeEvent('UNIT DATA,START,TX,{},{},{},{},{},{}'.format(_d_system, int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), 1, _int_dst_id).encode(encoding='utf-8', errors='ignore'))
|
|
|
|
@ -1500,7 +1500,7 @@ class routerOBP(OPENBRIDGE):
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
self.STATUS[_stream_id]['LAST'] = pkt_time
|
|
|
|
self.STATUS[_stream_id]['LAST'] = pkt_time
|
|
|
|
self.STATUS[_stream_id][packets] = self.STATUS[_stream_id][packets] + 1
|
|
|
|
self.STATUS[_stream_id]['packets'] = self.STATUS[_stream_id]['packets'] + 1
|
|
|
|
|
|
|
|
|
|
|
|
hr_times = {}
|
|
|
|
hr_times = {}
|
|
|
|
for system in systems:
|
|
|
|
for system in systems:
|
|
|
|
@ -2175,7 +2175,7 @@ class routerHBP(HBSYSTEM):
|
|
|
|
_tmp_bits = _bits ^ 1 << 7
|
|
|
|
_tmp_bits = _bits ^ 1 << 7
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
_tmp_bits = _bits
|
|
|
|
_tmp_bits = _bits
|
|
|
|
self.sendDataToHBP(_d_system,_d_slot,_dst_id,_tmp_bits,_data,dmrpkt,_rf_src,_stream_id,_peer_id,None)
|
|
|
|
self.sendDataToHBP(_d_system,_d_slot,_dst_id,_tmp_bits,_data,dmrpkt,_rf_src,_stream_id,_peer_id)
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
logger.info('(%s) UNIT Data not bridged to HBP on slot 1 - target busy: %s DST_ID: %s',self._system,_d_system,_int_dst_id)
|
|
|
|
logger.info('(%s) UNIT Data not bridged to HBP on slot 1 - target busy: %s DST_ID: %s',self._system,_d_system,_int_dst_id)
|
|
|
|
|