[Discuss-gnuradio] Resource busy Error

2010-04-30 Thread William Pretty Security Inc
My program: usrp_wbfm_receive.grc was working fine. Now there seems to be a
problem with Ubuntu L

 

When I now run usrp_wbfm_receive.grc, I get the following error:

 

Audio_alsa_sink[hw0:0]: Device or resource busy 

 

How do I find out what software is using the resource ??

 

Bill

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Resource busy Error

2010-04-30 Thread Alexandru Csete
On 30 April 2010 23:28, William Pretty Security Inc
bill.pre...@xplornet.com wrote:
 My program: usrp_wbfm_receive.grc was working fine. Now there seems to be a
 problem with Ubuntu L

 When I now run usrp_wbfm_receive.grc, I get the following error:

 Audio_alsa_sink[hw0:0]: Device or resource busy

 How do I find out what software is using the resource ??

In Ubuntu you can click on the volume control icon in the notification
area, select Sound Preferences, then the Applications tab.
Alternatively you can type lsof /dev/snd/pcmC*  in the terminal

Alex


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Resource busy error:

2009-04-22 Thread kollimarla bhargav
 Hi all,
 We are trying to run a simple receiver program using
benchmark_rx.py. The problem we are facing is when we try to run another
receiver program like usrp_spectrum_sense.py inside the benchmark_rx.py
using os.system() command , the error is  Device or Resource busy. We get
a feeling that the thread from benchmark_rx.py is still running. We even
used thread.stop before calling usrp_spectrum_sense.py, but this did not
work, the same error message popped up. Is there any other way of
exclusively kill the thread and call another receiver program.???
We are able to call a benchmark_tx.py transmitter code in benchmark_rx.py
receiver code, but the combination of calling any program with a reciever
block from benchmark_rx.py  was not successful and we got a error message
Resource busy . Is this a thread issue??
Appreciate any help!!

Thanking you
bhargav
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Resource busy error:

2009-04-22 Thread kollimarla bhargav
Thanks a lot Martin, that solved our problem, now we are able to call
another reciever code in benchmark_rx.py .One last question we tried to call
benchmark_rx.py from usrp_spectrum_sense.py, but still we get the same error
Resource busy
It seems that another top block other than tb is running in
usrp_spectrum_sense.py

thanks
bhargav



On Wed, Apr 22, 2009 at 5:54 PM, Martin DvH gnuradiom...@olifantasia.comwrote:


 On Wed, 2009-04-22 at 17:41 -0500, kollimarla bhargav wrote:
   Hi all,
   We are trying to run a simple receiver program using
  benchmark_rx.py. The problem we are facing is when we try to run
  another receiver program like usrp_spectrum_sense.py inside the
  benchmark_rx.py using os.system() command , the error is  Device or
  Resource busy. We get a feeling that the thread from benchmark_rx.py
  is still running. We even used thread.stop before calling
  usrp_spectrum_sense.py, but this did not work, the same error message
  popped up. Is there any other way of exclusively kill the thread and
  call another receiver program.???
  We are able to call a benchmark_tx.py transmitter code in
  benchmark_rx.py receiver code,
 This is logical.
 The TX part of the USRP can be used seperately from the RX part.
 The RX part is still in use so it can't be used for a new receiver.
   but the combination of calling any program with a reciever block from
  benchmark_rx.py  was not successful and we got a error message
  Resource busy . Is this a thread issue??
  Appreciate any help!!
 
 Your receiver chain still exists, even if it is not running.
 This keeps the RX part of the USRP in use.

 Did you instruct the topblock to stop and wait for it to finish.

 If you did, you could try after stopping the topblock.

 tb.rxpath=None

 or even
 tb = None

 This throws away the reference to the receive_path (which keeps the RX
 part of the USRP in use and thus 'Resource Busy'.)

 Martin

  Thanking you
  bhargav
 
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org
  http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Resource busy error:

2009-04-22 Thread Martin DvH

On Wed, 2009-04-22 at 18:47 -0500, kollimarla bhargav wrote:
 
 Thanks a lot Martin, that solved our problem, now we are able to call
 another reciever code in benchmark_rx.py .One last question we tried
 to call benchmark_rx.py from usrp_spectrum_sense.py, but still we get
 the same error Resource busy  
 It seems that another top block other than tb is running in
 usrp_spectrum_sense.py
This might have to do with:

self._tune_callback = tune(self)# hang on to this to keep it
from being GC'd

GCing (Garbage collecting) is exactly what we want here.
There is a kind of circular reference here so the tb keeps existing

I would try:
tb._tune_callback.tb=None
tb._tune_callback=None
tb.u=None
tb=None

Good luck,
Martin
 
 thanks
 bhargav
 
 
 
 On Wed, Apr 22, 2009 at 5:54 PM, Martin DvH
 gnuradiom...@olifantasia.com wrote:
 
 On Wed, 2009-04-22 at 17:41 -0500, kollimarla bhargav wrote:
   Hi all,
   We are trying to run a simple receiver program
 using
  benchmark_rx.py. The problem we are facing is when we try to
 run
  another receiver program like usrp_spectrum_sense.py inside
 the
  benchmark_rx.py using os.system() command , the error is 
 Device or
  Resource busy. We get a feeling that the thread from
 benchmark_rx.py
  is still running. We even used thread.stop before calling
  usrp_spectrum_sense.py, but this did not work, the same
 error message
  popped up. Is there any other way of exclusively kill the
 thread and
  call another receiver program.???
  We are able to call a benchmark_tx.py transmitter code in
  benchmark_rx.py receiver code,
 
 This is logical.
 The TX part of the USRP can be used seperately from the RX
 part.
 The RX part is still in use so it can't be used for a new
 receiver.
   but the combination of calling any program with a reciever
 block from
  benchmark_rx.py  was not successful and we got a error
 message
  Resource busy . Is this a thread issue??
  Appreciate any help!!
 
 
 Your receiver chain still exists, even if it is not running.
 This keeps the RX part of the USRP in use.
 
 Did you instruct the topblock to stop and wait for it to
 finish.
 
 If you did, you could try after stopping the topblock.
 
 tb.rxpath=None
 
 or even
 tb = None
 
 This throws away the reference to the receive_path (which
 keeps the RX
 part of the USRP in use and thus 'Resource Busy'.)
 
 Martin
 
  Thanking you
  bhargav
 
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org
  http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio