added debug stuff
This commit is contained in:
parent
0c6912c55f
commit
6c3cab0827
@ -148,7 +148,7 @@ class DATA_SYSTEM(HBSYSTEM):
|
|||||||
if _call_type == call_type or (_call_type == 'vcsbk' and pckt_seq > 3): #int.from_bytes(_seq, 'big') > 3 ):
|
if _call_type == call_type or (_call_type == 'vcsbk' and pckt_seq > 3): #int.from_bytes(_seq, 'big') > 3 ):
|
||||||
if _dtype_vseq == 6 or _dtype_vseq == 'group':
|
if _dtype_vseq == 6 or _dtype_vseq == 'group':
|
||||||
global btf
|
global btf
|
||||||
logger.info('Header from ' + str(int_id(_rf_src)))
|
logger.info('Header from ' + str(get_alias(int_id(_rf_src), subscriber_ids)) + '. DMR ID: ' + str(int_id(_rf_src)))
|
||||||
logger.info(ahex(bptc_decode(_data)))
|
logger.info(ahex(bptc_decode(_data)))
|
||||||
logger.info('Blocks to follow: ' + str(ba2num(bptc_decode(_data)[65:72])))
|
logger.info('Blocks to follow: ' + str(ba2num(bptc_decode(_data)[65:72])))
|
||||||
btf = ba2num(bptc_decode(_data)[65:72])
|
btf = ba2num(bptc_decode(_data)[65:72])
|
||||||
@ -158,7 +158,7 @@ class DATA_SYSTEM(HBSYSTEM):
|
|||||||
logger.info('Block #: ' + str(btf))
|
logger.info('Block #: ' + str(btf))
|
||||||
#logger.info(_seq)
|
#logger.info(_seq)
|
||||||
global packet_assembly
|
global packet_assembly
|
||||||
logger.info('Data block from ' + str(int_id(_rf_src)))
|
logger.info('Data block from ' + str(get_alias(int_id(_rf_src), subscriber_ids)) + '. DMR ID: ' + str(int_id(_rf_src)))
|
||||||
logger.info(ahex(bptc_decode(_data)))
|
logger.info(ahex(bptc_decode(_data)))
|
||||||
if _seq == 0:
|
if _seq == 0:
|
||||||
n_packet_assembly = 0
|
n_packet_assembly = 0
|
||||||
@ -187,6 +187,7 @@ class DATA_SYSTEM(HBSYSTEM):
|
|||||||
AIS.connect()
|
AIS.connect()
|
||||||
AIS.sendall(aprs_loc_packet)
|
AIS.sendall(aprs_loc_packet)
|
||||||
AIS.close()
|
AIS.close()
|
||||||
|
logger.info('Sent APRS packet')
|
||||||
except:
|
except:
|
||||||
logger.info('Failed to parse packet. Packet may be deformed. Not uploaded.')
|
logger.info('Failed to parse packet. Packet may be deformed. Not uploaded.')
|
||||||
# Get callsign based on DMR ID
|
# Get callsign based on DMR ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user