logger.error('(%s) OpenBridge packet discarded because NETWORK_ID: %s Does not match sent Peer ID: %s',self._system,int_id(self._config['NETWORK_ID']),int_id(_peer_id))
return
_seq=_data[4]
_rf_src=_data[5:8]
_dst_id=_data[8:11]
_bits=_data[15]
_slot=2if(_bits&0x80)else1
#_call_type = 'unit' if (_bits & 0x40) else 'group'
if_bits&0x40:
_call_type='unit'
elif(_bits&0x23)==0x23:
_call_type='vcsbk'
else:
_call_type='group'
_frame_type=(_bits&0x30)>>4
_dtype_vseq=(_bits&0xF)# data, 1=voice header, 2=voice terminator; voice, 0=burst A ... 5=burst F
logger.error('(%s) OpenBridge packet discarded because NETWORK_ID: %s Does not match sent Peer ID: %s',self._system,int_id(self._config['NETWORK_ID']),int_id(_peer_id))
return
_seq=_data[4]
_rf_src=_data[5:8]
_dst_id=_data[8:11]
_bits=_data[15]
_slot=2if(_bits&0x80)else1
#_call_type = 'unit' if (_bits & 0x40) else 'group'
if_bits&0x40:
_call_type='unit'
elif(_bits&0x23)==0x23:
_call_type='vcsbk'
else:
_call_type='group'
_frame_type=(_bits&0x30)>>4
_dtype_vseq=(_bits&0xF)# data, 1=voice header, 2=voice terminator; voice, 0=burst A ... 5=burst F
logger.error('(%s) OpenBridge packet discarded because NETWORK_ID: %s Does not match sent Peer ID: %s',self._system,int_id(self._config['NETWORK_ID']),int_id(_peer_id))
return
_seq=_data[4]
_rf_src=_data[5:8]
_dst_id=_data[8:11]
_timestamp=data_[15:23]
_bits=_data[23]
_slot=2if(_bits&0x80)else1
#_call_type = 'unit' if (_bits & 0x40) else 'group'
if_bits&0x40:
_call_type='unit'
elif(_bits&0x23)==0x23:
_call_type='vcsbk'
else:
_call_type='group'
_frame_type=(_bits&0x30)>>4
_dtype_vseq=(_bits&0xF)# data, 1=voice header, 2=voice terminator; voice, 0=burst A ... 5=burst F