properly form OBP packet for UNIT DATA

kf7eel-inc
Simon 4 years ago
parent d32e8eaa62
commit 5d38a98b3a
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -1829,7 +1829,12 @@ class routerHBP(HBSYSTEM):
continue
print(system)
if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE':
systems[system].send_system(_data)
# Clear the TS bit -- all OpenBridge streams are effectively on TS1
_tmp_bits = _bits & ~(1 << 7)
# Assemble transmit HBP packet header
_tmp_data = b''.join([_data[:15], _tmp_bits.to_bytes(1, 'big'), _data[16:20]])
_tmp_data = b''.join([_tmp_data, dmrpkt, _data[53:55]])
systems[system].send_system(_tmp_data)
logger.info('(%s) UNIT Data Bridged to OBP System: %s DST_ID: %s', self._system, system,_int_dst_id)
if CONFIG['REPORTS']['REPORT']:
systems[system]._report.send_bridgeEvent('UNIT DATA,START,TX,{},{},{},{},{},{}'.format(system, int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), 1, _int_dst_id).encode(encoding='utf-8', errors='ignore'))

Loading…
Cancel
Save

Powered by TurnKey Linux.