# New Topic

**URL:** <https://www.ruby-forum.com/t/new-topic/65822>\
**Category:** GNU Radio\
**Created:** [August 21, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/new-topic/65822 "2006-08-21T18:15:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 21, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/new-topic/65822/1 "2006-08-21T18:15:53Z")

</div>

Has anyone already created an eye pattern modification (e.g.  
[Eye pattern - Wikipedia](http://en.wikipedia.org/wiki/Eye_pattern)) for scopesink.py?

For BPSK, it requires triggering on any rising or falling edge,  
resetting the trigger after .75Tsymbol, making the horizontal axis match  
the width of Tsymbol, and make the display persist so that the trace on  
each sweep is overlayed on the traces from previous sweeps.

If it hasn’t been done already, I think I will try it.

Best regards,  
Jon

–  
This message was sent on behalf of removed\_email\_address@domain.invalid at  
[openSubscriber.com](http://openSubscriber.com)  
[http://www.opensubscriber.com/messages/removed\_email\_address@domain.invalid/topic.html](http://www.opensubscriber.com/messages/removed_email_address@domain.invalid/topic.html)

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 21, 2006, 7:32pm UTC](https://www.ruby-forum.com/t/new-topic/65822/2 "2006-08-21T19:32:05Z")

</div>

I forgot to modify the subject line. Oops.

–  
This message was sent on behalf of removed\_email\_address@domain.invalid at  
[openSubscriber.com](http://openSubscriber.com)  
[http://www.opensubscriber.com/message/removed\_email\_address@domain.invalid/4721269.html](http://www.opensubscriber.com/message/removed_email_address@domain.invalid/4721269.html)

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 21, 2006, 8:48pm UTC](https://www.ruby-forum.com/t/new-topic/65822/3 "2006-08-21T20:48:15Z")

</div>

On Tue, Aug 22, 2006 at 12:12:21AM +0800, removed\_email\_address@domain.invalid wrote:

> Best regards,  
> Jon

Please give it a shot. I don’t know of anyone who’s done it.

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 8, 2006, 1:10am UTC](https://www.ruby-forum.com/t/new-topic/65822/4 "2006-09-08T01:10:23Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Finally, after I finish tweaking this, what is the best way to submit the  
> changes for evaluation and possible incorporation into the next release?

If you are doing this work from inside a checked out svn repository, the  
best way to do this is to

1 - run ‘svn diff’ from the root of the working copy, and pipe this to a  
file ending in .patch or .diff

2 - Create a ticket on the GNU Radio Trac system, requesting a product  
enhancement and outlining what you’ve done

3 - Attach your patch file to the ticket in Trac

4 - Send a note on this mailing list with the Trac ticket number so we  
can all go look at your neat stuff

-Johnathan

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 8, 2006, 1:12am UTC](https://www.ruby-forum.com/t/new-topic/65822/5 "2006-09-08T01:12:23Z")

</div>

Johnathan C. wrote:

> 2 - Create a ticket on the GNU Radio Trac system, requesting a product  
> enhancement and outlining what you’ve done

I forgot to mention you’ll need to log in first using the ‘guest’  
account with password ‘gnuradio’.

-Johnathan

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 7, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/new-topic/65822/6 "2006-09-07T17:45:25Z")

</div>

I’ve got a modification to scopesink.py, gr\_trigger\_mode.h, and  
gr\_oscope\_guts.cc to allow viewing of an eye pattern. I added an “eye”  
trigger mode selection to the trigger menu, and an eye trigger mode that  
triggers on either a rising or falling edge (rather than only on one or  
the other). When the eye trigger mode is selected, the last 100 traces  
are displayed so the eye pattern can be viewed. Rather than setting the  
horizontal width by entering the number of samples per symbol, I just  
added some finer granularity to the scale selections for viewing my  
signal. I also added another state to the trigger detect in  
gr\_oscope\_guts.cc which looks for a “pre-trigger” when the eye trigger  
mode is selected. The LOOK\_FOR\_PRE\_TRIGGER state looks for a rising or  
falling edge followed by 3/4 symbol time without a rising or falling  
edge. Only after this condition is met does it move to the  
LOOK\_FOR\_TRIGGER state.

The idea for this was that I wanted to trigger only on the transition  
within a manchester encoded symbol, and not on transitions between  
manchester encoded symbols (such as the transition between consecutive  
ones or zeros.) I’m thinking I might cut this pre-trigger state out of  
the my final version, since to evaluate the openness of the eye, there  
is really no difference between intra-symbol and inter-symbol edges.  
However, it might be useful as long as the delay (right now hard-coded  
to 3/4 my symbol time in samples) could be adjusted from the scope GUI  
in terms of samples. Anyone have any thoughts/preferences on this?

Finally, after I finish tweaking this, what is the best way to submit  
the changes for evaluation and possible incorporation into the next  
release?

Best regards,  
Jon

–  
This message was sent on behalf of removed\_email\_address@domain.invalid at  
[openSubscriber.com](http://openSubscriber.com)  
[http://www.opensubscriber.com/message/removed\_email\_address@domain.invalid/4721269.html](http://www.opensubscriber.com/message/removed_email_address@domain.invalid/4721269.html)
