Browse Source

improved 1A decoding

dev
Clemens Richter 9 years ago
parent
commit
f64940ee6b
  1. 9
      python/rds_parser_table_qt.py

9
python/rds_parser_table_qt.py

@ -507,9 +507,9 @@ class rds_parser_table_qt(gr.sync_block):#START
PIN_valid= PIN_day in range(1,32) and PIN_hour in range(0,24) and PIN_minute in range(0,60) PIN_valid= PIN_day in range(1,32) and PIN_hour in range(0,24) and PIN_minute in range(0,60)
if PIN_valid: if PIN_valid:
self.RDS_data[PI]["PIN"]=[PIN_day,PIN_hour,PIN_minute] self.RDS_data[PI]["PIN"]=[PIN_day,PIN_hour,PIN_minute]
data_string="variant:%i,SLC:%04X,PIN (valid):%s "%(variant,SLC,str([PIN_day,PIN_hour,PIN_minute])) data_string="radio paging code:%i,LA:%i,variant:%i,SLC:%04X,PIN (valid):%s "%(radio_paging,LA,variant,SLC,str([PIN_day,PIN_hour,PIN_minute]))
else: else:
data_string="variant:%i,SLC:%04X,PIN:%04X "%(variant,SLC,PIN) data_string="radio paging code:%i,LA:%i,variant:%i,SLC:%04X,PIN:%04X "%(radio_paging,LA,variant,SLC,PIN)
#%02X%02X%02X%02X%02X #%02X%02X%02X%02X%02X
t=(str(datetime.now()),PI,self.RDS_data[PI]["PSN"],"PIN",data_string) t=(str(datetime.now()),PI,self.RDS_data[PI]["PSN"],"PIN",data_string)
@ -531,6 +531,7 @@ class rds_parser_table_qt(gr.sync_block):#START
language_codes=SLC language_codes=SLC
if self.debug: if self.debug:
print("PI:%s PSN:%s,language_codes:%s"%(PI,self.RDS_data[PI]["PSN"],hex(language_codes))) print("PI:%s PSN:%s,language_codes:%s"%(PI,self.RDS_data[PI]["PSN"],hex(language_codes)))
#variant 4 and 5 not assigned
elif variant==6: elif variant==6:
#for use by broadcasters #for use by broadcasters
if self.debug: if self.debug:
@ -983,8 +984,8 @@ class rds_parser_table_qt(gr.sync_block):#START
elif (groupType == "8A"): elif (groupType == "8A"):
if self.debug: if self.debug:
print("8A without 3A on PI:%s"%PI) print("8A without 3A on PI:%s"%PI)
#else:#other group elif self.log or self.log:#other group
#print("group of type %s not decoded on station %s"% (groupType,PI)) print("group of type %s not decoded on station %s"% (groupType,PI))
pr.disable() #disabled-internal-profiling pr.disable() #disabled-internal-profiling
#if self.writeDB: #if self.writeDB:

Loading…
Cancel
Save