Re: Problem in using trellis Error, correction en- and decoder

in the past Achilleas wrote:-------
There are a couple of potential problems with your flowgraph:

  1. the trellis encoder outputs unpacked bytes. For example, if your FSM
    output cardinality 4 then it outputs 2 useful bits per byte.

Are you sure you are handling this the right way at the packet encoder?
I do not know how that block works but you should check it.

however, the main problem is the following

  1. You need to substitute the “trellis viterbi” by the “trellis viterbi
    block and input as parameters the kind of “distance” metric you want and
    corresponding constellation, etc. To do that you need to know what is
    output of the packet decoder…

I have never worked with packet en/decoder so i cannot help with these.

-------------end of quote.

well, I first want to thank you, because it success. (The problem is
I did simplify the example: a source, a trellis and a viterbi combo.
Next, change the types for bytes.
Next use ‘packed to unpacked’ in the head.and ‘unpacked to packed’ in
tail of the flow.

i test with noise source the trellis, trellis-D8psk and trellis-DBPSK.
trellis-DBPSK in noise is better than trellis in noise .
but trellis in noise is better than trellis-D8psk in noise.

DBPSK Hamming distance=2.
trellis Hamming distance=sqrt(2).
D8pskHamming distance<sqrt(2).

the snapshot…where are the snapshot?


Could you please let me know, how to set FSM args value in Trellis
coder. I am
also using trellis coder for my work Please reply ASAP.

I’m not exactly an expert on this, but correct values
for the DVB-S trellis encoder (1/2 rate, G1(X) = 121,
G2(Y) = 91) are:

1, 2, (121, 91)

My DVB-S transmitter repository is here:


Hey Siva,

in [1] I parameterized the trellis module for a rate 1/3 code as used in
LTE. Maybe that helps. I put a lot of comments in.
Besides if you tell us what you want to achieve exactly, someone might
give more specific hints.

happy hacking


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs