Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-06 Thread Sylvain Munaut
> I still don't know why you *kill* the process. GNU Radio waits for *any* > key, and pressing anything but ctrl-C should let the flow graph shut down > correctly, in turn deallocating the UHD sources/sinks, which should free the > libusb device handles. ctrl-c sends a SIGINT (and not SIGSTOP like

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-06 Thread Marcus Müller
Hi Lefteris, I still don't know why you *kill* the process. GNU Radio waits for *any* key, and pressing anything but ctrl-C should let the flow graph shut down correctly, in turn deallocating the UHD sources/sinks, which should free the libusb device handles. Greetings, Marcus On 05.11.2014 22:5

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Ron Economos
Lefteris, If your flowgraph doesn't have a GUI element, you can right click on the Top Block icon and select Quit. Ron On 11/05/2014 02:40 PM, Eleftherios(Lef) Kampianakis wrote: Thanks again for your (rapid) response! 1) I think there should be somekind of bug report on that although I

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Eleftherios(Lef) Kampianakis
Thanks again for your (rapid) response! 1) I think there should be somekind of bug report on that although I dont really know how to do this 2) I was thinking of a workaround through lsmod (similar to modprobe in linux) to emulate the removal and re-insertion of USB, this way I could write a simpl

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Sylvain Munaut
Hi, > Ok, what about the python script in my previous message? How can I write my > code in order to prevent the LIB_USB_ERROR_PIPE message. No matter how I > stop the gnuradio script (e.g. catch keyboard interrupt and issue stop() and > wait as in my original post), I always get the same message.

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Eleftherios(Lef) Kampianakis
Sylvain thank you for your reply, Ok, what about the python script in my previous message? How can I write my code in order to prevent the LIB_USB_ERROR_PIPE message. No matter how I stop the gnuradio script (e.g. catch keyboard interrupt and issue stop() and wait as in my original post), I always

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Sylvain Munaut
> After this point the only thing that I can do is remove and re-insert the > USB from the computer in order for my script to work. I assume this is not > normal behavior (and also not a programming error) because this is a minimum > working example, and its not working. There is literally nothing

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Eleftherios(Lef) Kampianakis
Hello Thank you for your reply. No it happens only when I kill the script. let me give you another example. I have a flowgraph in GRC that looks like this: USRP source --> USRP sink I connect the B210 to the macmini via USB3 and press the "execute the flow graph" button. The script is execut

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-05 Thread Marcus Müller
Hi Lefteris, does the same happen when you just press any key instead of killing the script? Greetings, Marcus On 05.11.2014 03:40, Eleftherios(Lef) Kampianakis wrote: > Hello all, > > I am facing a strange problem when I am starting my gnuradio script. I keep > getting the following message. >

[Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio

2014-11-04 Thread Eleftherios(Lef) Kampianakis
Hello all, I am facing a strange problem when I am starting my gnuradio script. I keep getting the following message. -- Operating over USB 3. Traceback (most recent call last): File "file_sinks.py", line 104, in tb = file_sinks() File "file_sinks.py", line 47, in __init__ channels