anything
AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: usb_claim_interface error -6  (Read 11196 times)

0 Members and 1 Guest are viewing this topic.

skptrsn

  • New Member
  • *
  • Posts: 18
usb_claim_interface error -6
« on: January 28, 2024, 01:46:09 AM »
I'm working towards getting 1090 and 978 working from the same Pi 4. I keep running into this error, and find little reference to it in targeted searches. I imagine that's because it's rather fundamental, but I am rather new to this. Please help? I've attempted attaching an image, but just in case, the net error seems to say " usb_claim_interface error -6 ". Using a Pi 4B, following the "bookworm" protocol by abc456 or however that was...

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: usb_claim_interface error -6
« Reply #1 on: January 28, 2024, 05:03:31 PM »
usb_claim_interface error -6
Failed to open rtlsdr device #0

The above error message is thrown because the dongle is already in use by an app like dump1090-rb OR dump1090-fa OR dump978-rb OR dump978-fa. You have to first stop the app.

AS I am not aware which ones of above apps you have installed, I cannot give you exact command. I am giving below commands to stop ALL above apps. The applicable command will succeed, non-applicable will fail with error message. No harm in getting error messages. You will succeed in stopping the app which has grabbed the dongle. This will make dongle avaiable for rtl_eeprom command.

Code: [Select]
sudo systemctl stop rbfeeder

sudo systemctl stop dump1090-rb

sudo systemctl stop dump978-rb

sudo systemctl stop piaware dump1090-fa

sudo systemctl stop piaware dump978-fa



After executing above commands, the dongle will be free to be used by rtl_eeprom.

After completing rtl_eeprom Serializing, REBOOT Pi to restart all the stopped apps and normalize the system.

« Last Edit: January 28, 2024, 05:19:05 PM by abcd567 »

skptrsn

  • New Member
  • *
  • Posts: 18
Re: usb_claim_interface error -6
« Reply #2 on: February 06, 2024, 06:45:24 PM »
I may be slower than the average user of these things. Somehow, I'm screwing myself farther into this rabbit hole and feeling more helpless. I'm starting to feel like the guy who went into tunnel chasing lights and music to discover a train blowing its horn. Wiley E. Coyote?
Nonetheless I'm hopeful to get this thing running soon. O.k. never mind the "soon" - I'm hopeful to get this thing running again. This morning, I put on a clean OS, fully updated and upgraded it, added "rtl-sdr", plugged in a dongle and got this:
Quote
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@rasxxx:~ $ rtl_eeprom
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
Failed to open rtlsdr device #0.
pi@rasxxx::~ $ sudo systemctl stop rbfeeder
Failed to stop rbfeeder.service: Unit rbfeeder.service not loaded.
pi@rasxxx::~ $ sudo systemctl stop dump1090-rb
Failed to stop dump1090-rb.service: Unit dump1090-rb.service not loaded.
pi@rasxxx::~ $ sudo systemctl stop dump978-rb
Failed to stop dump978-rb.service: Unit dump978-rb.service not loaded.
pi@rasxxx::~ $ sudo systemctl stop piaware dump1090-fa
Failed to stop piaware.service: Unit piaware.service not loaded.
Failed to stop dump1090-fa.service: Unit dump1090-fa.service not loaded.
pi@rasxxx::~ $ sudo systemctl stop piaware dump978-fa
Failed to stop piaware.service: Unit piaware.service not loaded.
Failed to stop dump978-fa.service: Unit dump978-fa.service not loaded.
pi@rasxxx::~ $ rtl_eeprom
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
Failed to open rtlsdr device #0.
I haven't installed any of the feeders or handling utilities yet, as I wanted to avoid conflicts. Perhaps I'm missing a driver, but the mouse and keyboard I'm using are using onboard usb and the rtl-sdr (at least to my VERY LIMITED understanding) should have appropriate drivers included - no? Thanks for sharing your expertise - I'm a bit overwhelmed looking for solutions in available documentation and now I've lost track of which solutions worked well... so I'll continue to stumble blindly, recalling that even a blind squirrel gets a nut from time to time.

skptrsn

  • New Member
  • *
  • Posts: 18
Re: usb_claim_interface error -6
« Reply #3 on: February 07, 2024, 07:08:53 PM »
I'm so close, but so far away. So far, I've become proficient at installing an OS and serializing dongles; although I have yet to get the system to be correctly configured, I've demonstrated that my inferior antenna works just fine -

but when I take the Pi up to the "better" antenna with a saw-bird attached, I lose everything.. the dongles are still serialized, but somehow between the shutdown and reboot the system forgets what I just had it doing. I'm sure it's a simple setting that has already been posted, but when I don't even really know what to search for, I struggle in the plethora of frequently conflicting information.
The packages I sent yesterday were done by ignoring the above errors and attempting the install prescribed by ACBD567 for Bookworm - (thank you, very much, for that). If I attempt adding other feeders, or even just moving the Pi to a more suitable location than where I set it up at I'm losing everything.
At present, my dongles are serial numbers 00000978 and 00001090.

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: usb_claim_interface error -6
« Reply #4 on: February 07, 2024, 11:37:20 PM »
(1) Please conduct following test

Code: [Select]


sudo apt install rtl-sdr   

sudo systemctl stop rbfeeder 

sudo systemctl stop dump978-rb   
 
rtl_test -t


If all is OK, you should get following result from last command (rtl_test -t):

Code: [Select]
pi@raspberrypi:~ $ rtl_test -t
Found 2 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000978
  1:  Realtek, RTL2832U, SN: 00001090

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
pi@raspberrypi:~ $


NOTE: After finishing the above test, REBOOT Pi to restore system to normal.


(2) If you are using dump978-rb (the one installed during installation of rbfeeder), then serial # 00000978 is unfit. You have to serialize it to 00000401.

Please see this guide:
https://www.radarbox.com/flightstick978/guide


.
« Last Edit: February 07, 2024, 11:43:45 PM by abcd567 »

skptrsn

  • New Member
  • *
  • Posts: 18
Re: usb_claim_interface error -6
« Reply #5 on: February 08, 2024, 12:41:05 AM »
I think that's where I'm at -
Quote
pi@rasxxx:~ $ rtl_test -t
Found 2 device(s):
  0:  AIRNAV, ADSB_1090, SN: 00001090
  1:  Realtek, UAT_978, SN: 00000978

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
Reattached kernel driver
pi@rasxxx:~ $

I will reassign the 978 dongle to sn 00000401 (had it that way, changed it trying to incorporate another utility, trying to get lucky or figure this thing out a bit, whichever comes first.) Thank you for the guidance.


abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: usb_claim_interface error -6
« Reply #6 on: February 08, 2024, 01:35:23 AM »
@skptrsn

Did you do following?
(1)  Install package rtl-sdr
(2) Stopped rbfeeder and dump978-rb
(3) Run the command "rtl_test -t"

If yes, then what was output of command "rtl_test -t"?

skptrsn

  • New Member
  • *
  • Posts: 18
Re: usb_claim_interface error -6
« Reply #7 on: February 08, 2024, 07:38:07 AM »
I did, posted the original above, but that OS got corrupted. Reformatted, and am at that point once again. The quotes below are the output from my pi:
Quote
pi@rasxxx:~ $ sudo systemctl stop rbfeeder
pi@rasxxx:~ $ rtl_test -t
Found 2 device(s):
  0:  Realtek, UAT_978, SN: 00000401
  1:  AIRNAV, ADSB_1090, SN: 00001090

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
Reattached kernel driver
pi@raspi5:~ $

Station indicates that it's online, but it's blind - regardless of which antenna I seem to hook it to, presently. Had a flicker again the other day -
« Last Edit: February 08, 2024, 07:40:34 AM by skptrsn »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: usb_claim_interface error -6
« Reply #8 on: February 08, 2024, 08:08:22 AM »
Remove any LNA (such as NooElec SawBird or Uptronics Filtered Pre-amplifier or  RTL-SDR Blog Tripple Filtered LNA)

Connect antenna directly to the Dongle. See if this improves situation.

If LNA does not get power, or is defective, then instead of Amplifying, it Attenuates (i.e. reduces) the input signal.

skptrsn

  • New Member
  • *
  • Posts: 18
Re: usb_claim_interface error -6
« Reply #9 on: February 08, 2024, 02:43:39 PM »
I do have a one of those "SAWbird"s you speak of. Testing without it now. The lights indicated that it was properly powered and tailoring my signal for each dongle, but lights might lie too, I guess.
Pecking around last night, I noticed that dump978-rb will not install on the OS (64 bit desktop bookworm, as that is the option recommended by the manufacturer of the board). While attempting to chase it through before retiring, I got a partial install and found missing dependencies in Soapy... says they are not installable..

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dump978-rb:armhf : Depends: libboost-regex1.74.0-icu67:armhf but it is not installable
                    Depends: libsoapysdr0.7:armhf (>= 0.7.2) but it is not installable
E: Unable to correct problems, you have held broken packages.


Am I at the "format the disk and start over" spot again? It's been running about 15 minutes with no SAWbird, neither dongle seems to be marking aircraft yet. I just rebooted the system to see if I had a vital component shutdown and not restarted. Will run it for a few hours and see if a difference is there - but from what I see, I think we're still in the mud here.
« Last Edit: February 08, 2024, 03:05:01 PM by skptrsn »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: usb_claim_interface error -6
« Reply #10 on: February 08, 2024, 04:52:14 PM »
(1) Run following command. It will most likely solve the dump978  dependency issue. When it asks permission to install packages, say yes.

Code: [Select]

sudo apt --fix-broken install     


(2) If you are using RTL-SDR Blog V3 / V4 dongle and powering SawBird LNA through dongle's builtin bias-t, then please note that command eepron_power turns OFF the bias-t.


.


.
« Last Edit: February 08, 2024, 04:56:59 PM by abcd567 »

skptrsn

  • New Member
  • *
  • Posts: 18
Re: usb_claim_interface error -6
« Reply #11 on: February 09, 2024, 10:13:10 PM »
I'm gonna go out on a limb and guess my microSD card might have been the culprit? Today, I grabbed a new card and put a new system on it and have Radarbox back up, performing as expected through restarts. Followed the installation instructions by ABCD to install on bookworm. Only hiccup was when I forgot to turn the comments off on the UAT option in /etc/rbfeeder.ini. Thanks for the assistance and concise instructions!