# Benchmark files

**URL:** <https://www.ruby-forum.com/t/benchmark-files/231517>\
**Category:** GNU Radio\
**Created:** [August 13, 2014, 5:19am UTC](https://www.ruby-forum.com/t/benchmark-files/231517 "2014-08-13T05:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 13, 2014, 5:19am UTC](https://www.ruby-forum.com/t/benchmark-files/231517/1 "2014-08-13T05:19:34Z")

</div>

I would like to know the best way to test the benchmark\_tx.py and  
benchmark\_rx.py files.

These files are located in the /usr/share/gnuradio/examples/digital/ofdm  
directory.

My goal is to transmit a jpg file from one USRP 2 device to another one  
and have the jpg file saved on the host computer.

I am using Ubuntu 14.02 with GNUradio.

I run this command on the transmitter:

sudo ./benchmark\_tx.py --from-file=F.jpg -f 2.4e6 -m qpsk -a  
addr=192.168.10.2

F.jpg is saved in the /usr/share/gnuradio/examples/digital/ofdm  
directory

I also edited line 105 of the benchmark\_tx.py from:

data = source\_file.read(pkt\_size - 2)

to:

data = open(‘F.jpg’).read()

At the receiver I run the following:

sudo ./benchmark\_rx.py -A RX2 -f 2.4G -m qpsk -a addr=192.168.10.2

At then run a packet capture on the host computer that is connected to  
the receiving USRP and I see that there are many packets being received,  
but I never see the file.

Each USRP is connect to a separate computer running Ubuntu. The USRP  
devices have the default IP on them of 192.168.10.2

Can someone please tell me the best way to run the benchmark code? Do I  
need to do some synchronization? If so how?

Many thanks.
