# Re: Very low packet loss rate for the discontinuous BPSK communications- the analysis and looking fo

**URL:** <https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170>\
**Category:** GNU Radio\
**Created:** [March 6, 2013, 10:46am UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170 "2013-03-06T10:46:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 10:46am UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/1 "2013-03-06T10:46:33Z")

</div>

Hello,

I am getting the same problem you described here i.e very high packet  
loss  
in discontinuous mode (first and last packet received with ok=False).

Could you please elaborate on how to adjust the synchronisation loops  
bandwidth?  
I have tried adjusting the --timing-bw and --phase-bw parameters on the  
benchmark-rx example, but I don’t know if that is what you were talking  
about.

_From:_ Adeel A. [address@hidden](mailto:address@hidden)

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 10:59am UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/2 "2013-03-06T10:59:25Z")

</div>

I don’t believe this problem can be solved by adjusting the loop  
bandwidth.  
Applying faster tracking algorithm may solve this problem, but I think  
it  
takes long time to develop for a new guy.

On Wed, Mar 6, 2013 at 3:44 AM, Jawad S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > 1: U can try adjusting the synchronization loops bandwidth (Phase/Timing
> > 
> > discontinuous mode where every 5 packets are in a burst. But in continuous  
> > I have tried to add very long preamble for each packet to ensure the
> 
> * * *
> 
> Discuss-gnuradio mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–

Alex,  
_Dreams can come true just believe._

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 11:11am UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/3 "2013-03-06T11:11:06Z")

</div>

Ok, well thank you for the fast answer.  
I’ll keep looking around but this is a serious issue for me, it means I  
can’t use my two USRP to send and receive any useful traffic.

2013/3/6 Alex Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 2:10pm UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/4 "2013-03-06T14:10:00Z")

</div>

On Wed, Mar 6, 2013 at 6:42 AM, Sreeraj Rajendran  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > takes long time to develop for a new guy.
> 
> If you have a good understanding of the algorithm, its really easy to  
> prototype the alogorithm in GRC or by using gnuradio python-block coding  
> support. “gr\_modtool” is always there to make block coding easier.
> 
> -Sreeraj

Also hand tune to make sure the frequencies of the transmitter and  
receiver are as close as you can get them. The slowest loop in this  
chain is the frequency lock loop, so overcome that by hand and see  
what happens.

Tom

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/5 "2013-03-06T12:44:02Z")

</div>

> > I don’t believe this problem can be solved by adjusting the loop bandwidth.

Acquisition time is roughly inversely proportional to loop\_bw and error  
variance is proportional to loop\_bw. So there is always a tradeoff  
between acquisition time and tracking performance. You should try  
adjusting loop\_bw  
([Control Loop Gain Values — Rondeau Research](http://www.trondeau.com/blog/2011/8/13/control-loop-gain-values.html)).

> > Applying faster tracking algorithm may solve this problem, but I think it takes  
> > long time to develop for a new guy.

If you have a good understanding of the algorithm, its really easy to  
prototype the alogorithm in GRC or by using gnuradio python-block coding  
support. “gr\_modtool” is always there to make block coding easier.

-Sreeraj

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 7:16pm UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/6 "2013-03-06T19:16:49Z")

</div>

Thanks you all.  
I will try to adjust th loop\_bw in the fll firstly to see what happened.

And I am not understanding the function advance\_loop(error) well:

void  
gri\_control\_loop::advance\_loop(float error)  
{  
d\_freq = d\_freq + d\_beta \* error;  
d\_phase = d\_phase + d\_freq + d\_alpha \* error;  
}

I am not clear why d\_freq and d\_phase are updated in this way. Is the  
d\_freq the frequency offset estimate every step?

According to the  
[Control Loop Gain Values — Rondeau Research](http://www.trondeau.com/blog/2011/8/13/control-loop-gain-values.html) , i  
have a rough picture on this, but still confused why d\_freq is only  
dependent on d\_beta.

The other question is: Is it possible to turn off the loop when there is  
no  
input signal (only noise) and turn on the loop when signal is detected?  
If possible, how to update hte d\_freq and d\_phase?

On Wed, Mar 6, 2013 at 7:08 AM, Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> loop\_bw
> 
> > -Sreeraj  
> > Discuss-gnuradio mailing list  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–

Alex,  
_Dreams can come true just believe._

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 7, 2013, 7:19am UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/7 "2013-03-07T07:19:21Z")

</div>

Besides the tips mentioned in the previous mails, I am wondering if the  
carrier recovery can performed by adding proper preamble fore the burst  
mode bpsk communication.  
Several books mentioned that but did not provide more details;

for example:

Radio System Design for Telecommunication By Roger L. Freeman  
page 417.

Satellite Communication  
By Dharma Raj Cheruku  
page 138

Especially the latter book, a preamble with 352 bits are used as carrier  
recovery, which is much faster than the my current FLL.  
I am wondering if any guy who have similar implementation.

On Wed, Mar 6, 2013 at 7:08 AM, Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> loop\_bw
> 
> > -Sreeraj  
> > Discuss-gnuradio mailing list  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–

Alex,  
_Dreams can come true just believe._

---

<div class="post-metadata">

**Author:** ![Jawad\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jawad\_S](https://www.ruby-forum.com/u/Jawad_S)\
**Post date:** [March 6, 2013, 8:17pm UTC](https://www.ruby-forum.com/t/re-very-low-packet-loss-rate-for-the-discontinuous-bpsk-communications-the-analysis-and-looking-fo/227170/8 "2013-03-06T20:17:34Z")

</div>

In my case I am inclined to think that the problem might come from the  
emitter, here is why :

First, I am mostly getting errors on the last packet of the burst rather  
than the first (95% of the time).

I have tweaked the benchmark\_tx file a bit so that I could adjust the  
length of the burst and the sleeping time between two bursts : when  
using  
large bursts, the receiver receives all packets as if it were a  
continuous  
transmission and therefore no errors occur on the last packet of the  
burst.

So the transmitter stops adding packets to the queue but still is  
sending  
packets inside the queue through the antenna.

It seems to me that this could actually be a weird effect from the  
transmitter that cuts power (or something along those lines) before the  
last packet is completely transmitted.

Thank you for the tips, and if you want me to create my own topic for  
this  
issue, just say the word.
