Skip to content

Commit

Permalink
linted python code
Browse files Browse the repository at this point in the history
  • Loading branch information
henningM1r committed Aug 9, 2023
1 parent 78bcc53 commit ea5bdcf
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 77 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# gr_DCF77_Receiver
![Pipeline](https://github.com/henningM1r/gr_DCF77_Receiver/actions/workflows/docker-ci.yml/badge.svg)

This is a basic DCF77 receiver for GNU Radio, containing:
1. signal demodulation and detection of the DCF77 OOK signal with an SDR using GNU Radio (and Python modules)
2. signal demodulation and detection of the DCF77 phase-modulated signal with an SDR using GNU Radio (and Python modules)
Expand Down
3 changes: 3 additions & 0 deletions python/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
ignore = E231,E402,E226,E231, W503,W504
count = True
2 changes: 1 addition & 1 deletion python/decoder/Class_DecodeDCF77_OOK.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def decode_startbit(self, bit):
if bit == 1:
output += "00: ERROR: Start-bit is 1 instead of 0!\n"
elif bit == 0:
output += f"00: Start-bit is 0.\n"
output += "00: Start-bit is 0.\n"
elif bit == 3:
output += "00: ERROR: Start-bit is ?.\n"

Expand Down
2 changes: 1 addition & 1 deletion python/decoder/Class_DecodeDCF77_PhaseMod.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def consumer(self):

# too many bits trigger a reset of the current bitstream
if count > 60:
print(f"Error: More than 60 bits at new minute")
print("Error: More than 60 bits at new minute")
print(f"#Bits: {len(bitstream)}")

# reset bitstream
Expand Down
7 changes: 5 additions & 2 deletions python/decoder/Class_DecodeDCF77_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from abc import ABC, abstractmethod


class Class_DecodeDCF77_common(ABC):

def __init__(self):
Expand Down Expand Up @@ -317,7 +318,8 @@ def decode_date_weekday(self, bitstream):
bitstream[21] ^ bitstream[22] == 0):
output += "58: Even parity of date and weekdays successful.\n"
else:
output += "58: ERROR: Even parity of date and weekdays failed.\n"
output += "58: ERROR: Even parity of " + \
"date and weekdays failed.\n"
else:
output += "58: ERROR: Even parity of date and weekdays is ?.\n"

Expand All @@ -329,6 +331,7 @@ def decode_minute_mark(self, bit):
if bit == 0:
output += "59: Minute mark of DCF77 phase modulation is 0.\n"
else:
output += "59: ERROR: Minute mark of DCF77 phase modulation failed, it is not 0.\n"
output += "59: ERROR: Minute mark of DCF77 phase " + \
"modulation failed, it is not 0.\n"

return output
2 changes: 1 addition & 1 deletion python/detector/bit_detector_OOK.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def extract_bits(self, inp):
key,
value)

# detected 0 bit
# detected 0 bit
self.message_port_pub(pmt.intern("msg_out"),
pmt.intern("1"))

Expand Down
45 changes: 21 additions & 24 deletions python/detector/bit_detector_PhaseMod.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ def edge_detection(self, inp):
global _code

out = inp

for idx, ch in enumerate(inp):
if (ch == +1):
_num_pos += 1

elif (ch == -1):
_num_neg += 1

else: # ch == 0
_num_pos = 0
_num_neg = 0
_num_neg = 0
_num_zero += 1

# ensure the total break is always 200ms
Expand All @@ -124,9 +124,9 @@ def edge_detection(self, inp):
key = pmt.intern("e")
value = pmt.intern("2")
self.add_item_tag(0,
self.nitems_written(0) + idx,
key,
value)
self.nitems_written(0) + idx,
key,
value)

_code = self.code_append(code=_code, num=1, mode=2)

Expand All @@ -138,9 +138,9 @@ def edge_detection(self, inp):
key = pmt.intern("e")
value = pmt.intern(f"-1, {_num_pos}")
self.add_item_tag(0,
self.nitems_written(0) + idx,
key,
value)
self.nitems_written(0) + idx,
key,
value)

_code = self.code_append(code=_code, num=_num_pos, mode=+1)

Expand All @@ -152,9 +152,9 @@ def edge_detection(self, inp):
key = pmt.intern("e")
value = pmt.intern(f"+1, {_num_neg}")
self.add_item_tag(0,
self.nitems_written(0) + idx,
key,
value)
self.nitems_written(0) + idx,
key,
value)

_code = self.code_append(code=_code, num=_num_neg, mode=-1)

Expand All @@ -168,9 +168,9 @@ def edge_detection(self, inp):
key = pmt.intern("e")
value = pmt.intern("+1")
self.add_item_tag(0,
self.nitems_written(0) + idx,
key,
value)
self.nitems_written(0) + idx,
key,
value)

_num_neg = 0
_num_zero = 0
Expand All @@ -182,9 +182,9 @@ def edge_detection(self, inp):
key = pmt.intern("e")
value = pmt.intern("-1")
self.add_item_tag(0,
self.nitems_written(0) + idx,
key,
value)
self.nitems_written(0) + idx,
key,
value)

_num_pos = 0
_num_zero = 0
Expand All @@ -194,14 +194,11 @@ def edge_detection(self, inp):
key = pmt.intern("e")
value = pmt.intern("0")
self.add_item_tag(0,
self.nitems_written(0) + idx,
key,
value)
self.nitems_written(0) + idx,
key,
value)

self.transmit_code(code=_code)
self.reinit_code()

return out



24 changes: 11 additions & 13 deletions python/detector/code_sequence_correlator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from gnuradio import gr
from gnuradio import gr
import pmt
import numpy as np

Expand All @@ -12,7 +12,7 @@ def __init__(self):
name="Code Sequence \n Correlator",
in_sig=None,
out_sig=None)

# prepare in and out ports for messages
self.message_port_register_out(pmt.intern('msg_out'))
self.message_port_register_in(pmt.intern('msg_in'))
Expand Down Expand Up @@ -64,7 +64,7 @@ def __init__(self):
def handle_msg(self, msg):
# message contains whole spread sequence of a received second
msg = pmt.to_python(msg)
#print("Message:", msg)
# print("Message:", msg)

recv_sequence = list(map(int, msg))
np_recv_seq = np.array(recv_sequence)
Expand All @@ -79,22 +79,22 @@ def handle_msg(self, msg):
if np_recv_seq_padded[-1] == 2:
np_recv_seq_padded = np.insert(np_recv_seq_padded,
-2, np.zeros(10), axis=0)
else: # ordinary case

else: # ordinary case
np_recv_seq_padded = np.insert(np_recv_seq_padded,
-1, np.zeros(10), axis=0)

if len(np_recv_seq) > 0:
res_zero = np.correlate(np_recv_seq_padded, self.np_knwn_zero_seq)
res_one = np.correlate(np_recv_seq_padded, self.np_knwn_one_seq)
#print(res_zero)
#print(res_one)
# print(res_zero)
# print(res_one)

# NOTE the max-norm provides good results so far
norm_zero = max(res_zero)
norm_one = max(res_one)
#print("N0: ", norm_zero)
#print("N1: ", norm_one)
# print("N0: ", norm_zero)
# print("N1: ", norm_one)

if norm_zero > norm_one:
self.message_port_pub(pmt.intern('msg_out'),
Expand All @@ -106,18 +106,16 @@ def handle_msg(self, msg):

# even if these norms are identical,
# an error message might still be useful for the decoder
#else:
# else:
# self.message_port_pub(pmt.intern('msg_out'),
# pmt.intern('e'))

if self._min_marker == 1:
self.message_port_pub(pmt.intern('msg_out'),
pmt.intern('2'))
# disable minute marker
# disable minute marker
self._min_marker = 0

# delay minute symbol for a single symbol
if np_recv_seq[-1] == 2:
self._min_marker = 1


12 changes: 6 additions & 6 deletions python/encoder/EncodeDCF77.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def run(self):

# encode current time into bit-stream
bitstream = self.encode_dcf77_bitstream(
day=day, month=month, year=year,
hh=hh, mm=mm, ss=ss, weekday=weekday,
weather=weather,
call_bit=False,
time_shift=False, time_offset=0,
CEST=CEST, CET=CET, leap=False)
day=day, month=month, year=year,
hh=hh, mm=mm, ss=ss, weekday=weekday,
weather=weather,
call_bit=False,
time_shift=False, time_offset=0,
CEST=CEST, CET=CET, leap=False)

print(f"sending full block: \n {bitstream}\n"
" with 1 symbol per second")
Expand Down
102 changes: 74 additions & 28 deletions python/transmitter/DCF77_Transmitter_DCF77_code.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,77 @@
# this module will be imported in the into your flowgraph

sequence_0 = [-1,-1,-1,-1,-1,+1,-1,-1,-1,+1,+1,-1,-1,-1,-1,+1,-1,-1,+1,+1,+1,-1,-1,+1,-1,+1,-1,+1,-1,+1,+1,-1,-1,-1,-1,+1,+1,-1, \
+1,+1,+1,+1,-1,+1,-1,-1,+1,+1,-1,+1,+1,+1,-1,-1,+1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deletions tests/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
ignore = E231,E402,E226,E231, W503,W504
count = True
2 changes: 1 addition & 1 deletion tests/test_gr_BitDetector_PhaseMod.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setUp_Block(self):
# NOTE the test_block must be instantiated and run once
# before a subroutines is called manually
self.test_block = (DCF77_BitDetector_PhaseMod.DCF77_BitDetector_blk(
sample_rate=48000, chip_size=75))
sample_rate=48000, chip_size=75))

self.tb.connect(self.src_sig, (self.test_block, 0))
self.tb.connect((self.test_block, 0), self.snk_sig)
Expand Down

0 comments on commit ea5bdcf

Please sign in to comment.