Page 1 of 1

USB_claim_interface error -6 Eliminate unplugging

Posted: Tue Jun 25, 2019 2:58 am
by petec
I have found that if my program didn't end "nice", the next time I try to run rtl_sdr I will get

"USB_claim_interface error -6"

I have found that all I have to do is unplug the dongle and plug it back in and the error is gone. I guess USB port thinks it is still in use by the program that was "un-nice"

I am looking for a way that I can add something to my program to free up the port. I will have cases where I am running remotely and won't be able to unplug/plug.

Any ideas?


Re: USB_claim_interface error -6 Eliminate unplugging

Posted: Fri Jul 05, 2019 5:50 am
by radiolistener
when your program is stopped to work unexpectedly, you're needs to check it in the task manager. Very often part of this porgram still stays in memory and keeps connection with USB device. This is why it cannot be opened when you start a new instance of the application. Just kill this ghost process and after that it should works ok.