"usb_claim_interface error" occurred

Need help installing or figuring out something about your SDR? Ask here.
Post Reply
eightok
Posts: 4
Joined: Sat Mar 18, 2017 1:31 pm

"usb_claim_interface error" occurred

Post by eightok » Sat Mar 18, 2017 2:15 pm

"rtl_test" does not work on Raspberry Pi3 properly.
I want to know how to solve this problem.

>Found 1 device(s):
> 0: Generic, RTL2832U, SN: ****************
>
>Using device 0: Generic RTL2832U
>usb_claim_interface error -6
>Failed to open rtlsdr device #0.

I installed rtl-sdr on Raspberry Pi3 in the way as described on the following link.
"https://gist.github.com/floehopper/99a0c8931f9d779b0998"

And I made "rtlsdr.conf" file at "/etc/modprobe.d/" as follows.

>blacklist dvb_usb_rtl28xxu
>blacklist rtl2830
>blacklist rtl2832
>blacklist dvb_usb_v2
>blacklist dvb_core

And I checked by "lsmod" command that there are no DVB related devices.

raspberrypi 4.4.50-v7+ #970
armv7l

Thanks.
Last edited by eightok on Sun Mar 19, 2017 5:14 am, edited 2 times in total.

rtlsdrblog
Site Admin
Posts: 1722
Joined: Mon Nov 19, 2012 11:54 pm

Re: "usb_claim_interface error" occured

Post by rtlsdrblog » Sat Mar 18, 2017 10:11 pm

Does anything change if you run rtl_test as root?

eightok
Posts: 4
Joined: Sat Mar 18, 2017 1:31 pm

Re: "usb_claim_interface error" occured

Post by eightok » Sun Mar 19, 2017 5:10 am

rtlsdrblog wrote:Does anything change if you run rtl_test as root?
Thanks for your reply.
I tried rtl_test as root, but nothing changed.

hotpaw2
Posts: 56
Joined: Sat Jan 14, 2017 11:07 pm
Contact:

Re: "usb_claim_interface error" occurred

Post by hotpaw2 » Sun Mar 19, 2017 5:14 pm

eightok wrote:"rtl_test" does not work on Raspberry Pi3 properly.
>usb_claim_interface error -6
>Failed to open rtlsdr device #0.
I got a similar error under the latest Raspian, I found I had to change the build script to use this line:

Code: Select all

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
Not sure why...

eightok
Posts: 4
Joined: Sat Mar 18, 2017 1:31 pm

Re: "usb_claim_interface error" occurred

Post by eightok » Mon Mar 20, 2017 2:51 am

hotpaw2 wrote:

Code: Select all

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
Not sure why...
Thank you for your reply.
I also tested this one, but nothing changed...

eightok
Posts: 4
Joined: Sat Mar 18, 2017 1:31 pm

Re: "usb_claim_interface error" occurred

Post by eightok » Mon Mar 20, 2017 4:11 am

It worked!

Only after reboot, it did not work.
But, once I disconnected the dongle hardware manually, and again connected it manually, it began to work.

But why?

Husker84
Posts: 2
Joined: Sat Aug 11, 2018 11:32 am

Re: "usb_claim_interface error" occurred

Post by Husker84 » Sat Aug 11, 2018 2:56 pm

I’m having the same issue.

I tried recompiling using

Code: Select all

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
And don’t work.

Also tried to made a config file at "/etc/modprobe.d/" with.

>blacklist dvb_usb_rtl28xxu
>blacklist rtl2830
>blacklist rtl2832
>blacklist dvb_usb_v2
>blacklist dvb_core

Restarting, and still don’t works.

https://imgur.com/a/lpnuWuz



In a Windows system it works like a charm.

Any idea?

rtlsdrblog
Site Admin
Posts: 1722
Joined: Mon Nov 19, 2012 11:54 pm

Re: "usb_claim_interface error" occurred

Post by rtlsdrblog » Sun Aug 12, 2018 12:14 pm

Can you try blacklisting

blacklist dvb_usb_rtl2832u

I know of at least one version of Linux where 'xx' didn't work for some reason.

Post Reply