USRP access via sockets

Hello again,

Here is my setup. I have a Debian Sarge linux LAN isolated from the
outside
world. I have the USRP hooked up to one computer, and I am trying to
have
that computer feed another computer data via Python sockets.

On the computer being fed (the one WITHOUT the USRP), I am running a
program very similar to usrp_fft.py. This program, instead of accessing
the
USRP directly, accepts data from gr.file_descriptor_source AFTER I have
established a socket with the computer feeding this one the data.

As for the feeding computer, it is running usrp_rx_cfile.py with the
sink,
instead of gr.file_sink, is now gr.file_descriptor_sink. This computer
is
listening for the other computer in order to create a connection with
it.

Then, for the actual process: I run the feeding computer, then run the
computer being fed, but there is an error. The feeding computer starts
listing the USRP data (Rev number, etc.), but then it says
“gr.file_descriptor_sink: broken pipe”.

Any suggestions or comments? Thanks a bunch,

Written

View this message in context:
http://www.nabble.com/USRP-access-via-sockets-tf2223875.html#a6161917
Sent from the GnuRadio forum at Nabble.com.

On Tue, Sep 05, 2006 at 03:50:12PM -0700, Written wrote:

established a socket with the computer feeding this one the data.

As for the feeding computer, it is running usrp_rx_cfile.py with the sink,
instead of gr.file_sink, is now gr.file_descriptor_sink. This computer is
listening for the other computer in order to create a connection with it.

Then, for the actual process: I run the feeding computer, then run the
computer being fed, but there is an error. The feeding computer starts
listing the USRP data (Rev number, etc.), but then it says
“gr.file_descriptor_sink: broken pipe”.

It’s almost certain that the file handle corresponding to the file
descriptor you are using has gone out of scope and thus has been
closed.

Eric

After a little debugging, I found where exactly the pipe seems to break.
Please forgive the redundancy to follow, those of you who are already
familiar with the gnuradio graph class hierarchy.

AFTER the socket connection between the two computers is established:

1.) usrp_rx_cfile.my_graph.run() is called, and usrp_rx_cfile.init
is
progressed through

2.) then at the end of it, flow_graph.run() is called. ( located in
/usr/local/lib/python2.3/…(etc)…/gr/flow_graph.py )

3.) Control goes to flow_graph, and scheduler.py is called via
self.scheduler.start()

4.) and at line 57 in scheduler.py, thread.start() is called. After it
is
called (probably sometime during it, rather), the pipe breaks.

I don’t know Python very well, and I am not proficient at network
programming. Any help is appreciated. Sorry I cannot easily post
output to
the forum; this LAN is isolated from the internet.

Written

Eric B. wrote:

listening for the other computer in order to create a connection with it.
Eric


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


View this message in context:
http://www.nabble.com/USRP-access-via-sockets-tf2223875.html#a6181035
Sent from the GnuRadio forum at Nabble.com.

I don’t know how much it helps my overall problem, but I found a site
that
has some files that helped me get my bearings. I am able to play the
USRP
radio on one computer by running a client program on another one.

Here’s the site:

http://alumni.media.mit.edu/~jcooley/gr_experiments/experiments/gr_socket.htm

Still, any advice on this matter is appreciated.

View this message in context:
http://www.nabble.com/USRP-access-via-sockets-tf2223875.html#a6199704
Sent from the GnuRadio forum at Nabble.com.