Gr-trellis ; convolutional code and convolutionnal interleaver.
I’m trying to design an error correction flow graph that would use a
convolutional encoder and a convolutional interleaver. I searched in
gr-trellis for the appropriate blocks, but I have a bunch of questions
about how to use them.
About the convolutional interleaver.
Trellis.interleaver needs a specification file. Where can I find an
example of this specification file? The best would be a file specifying
About Viterbi decoder
I wrote the following python file that should encode a stream of bits
decode it using Viterbi algorithm. Unfortunately, my inputs and outputs
are different. What did I do wrong?
constel= (2,[0, 0, 0, 1, 1, 0, 1, 1]) f=trellis.fsm("/home/Axel/Desktop/Testgnuradio/FSM_Codeur2.fsm") self.src_data =
self.in_data = gr.vector_source_s (self.src_data) self.enc = trellis.encoder_ss(f,0) # initial state = 0 #self.mod = gr.chunks_to_symbols_sf(constel,constel) self.metrics =
self.va = trellis.viterbi_s(f,2,0,-1) # Put -1 if the Initial/Final
states are not set.
if name == ‘main’:
tb = top()
(FSM_codeur2.fsm = )
2 4 4