[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory
From: |
Brett L. Trotter |
Subject: |
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory |
Date: |
Fri, 27 May 2011 13:53:51 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10 |
This is precisely the problem I'm seeing that kills my USB. I have to
ctrl+c to keep that from happening.
On 05/27/2011 12:05 PM, Johannes Schmitz wrote:
> I made a simple example to show how it happens.
> It is a problem of lock/unlock in combination with usrp.
>
> Like this the lock unlock disconnect seems to absolutely unusable :(
>
> -------------------------------------
>
> #!/usr/bin/env python
>
> from gnuradio import gr
> from gnuradio import usrp
>
> from time import sleep
>
> class top_block(gr.top_block):
> def __init__(self):
> gr.top_block.__init__(self, "fusb error")
>
> self.u = usrp.source_c ()
> self.sink = gr.null_sink(gr.sizeof_gr_complex)
> self.connect(self.u, self.sink)
>
> def reconfigure(self):
> self.lock()
> print 'lock'
> self.unlock()
> print 'unlock'
>
> if __name__ == '__main__':
> app = top_block()
> app.start()
> #sleep(1)
> print 'start'
> app.reconfigure()
> print "reconfigured"
> sleep(1)
> print 'now stopping'
> app.stop()
> print 'stopped'
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory, Thomas Tsou, 2011/05/27
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory, Thomas Tsou, 2011/05/30
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory, Marcus D. Leech, 2011/05/30