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

Login with username, password and session length
 


Author Topic: rtlsdr: error opening the RTLSDR device: Device or resource busy  (Read 2422 times)

0 Members and 1 Guest are viewing this topic.

ea5xq

  • New Member
  • *
  • Posts: 3
rtlsdr: error opening the RTLSDR device: Device or resource busy
« on: December 25, 2024, 06:09:44 PM »
Hi

I have installed rbfeeder and works fine. I added fr24feed and adbsexchange and only if teh Raspberry Pi (3b+) reboot rbfeeder faces problems to access the SDR (radarbox original), I have to stop rbfeed, fr24 and adsbsexchange, switch off/on the SDR and starts only rbfeeder and thereafter the rest. It seems that a process is taking the control of the device before Rbfeeder. How could I control it? thanks

sudo systemctl status rbfeeder
● rbfeeder.service - RBFeeder Service
     Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-12-25 19:01:39 CET; 9s ago
    Process: 22121 ExecStartPre=/bin/mkdir /var/run/rbfeeder (code=exited, status=1/FAILURE)
    Process: 22122 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/run/rbfeeder (code=exited, status=0/SUCCESS)
    Process: 22123 ExecStartPre=/bin/touch /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
    Process: 22124 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
    Process: 22125 ExecStartPre=/bin/chown rbfeeder:rbfeeder /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
    Process: 22126 ExecStartPre=/bin/setfacl -m u:www-data:rwx /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
   Main PID: 22127 (rbfeeder)
      Tasks: 10 (limit: 1595)
        CPU: 698ms
     CGroup: /system.slice/rbfeeder.service
             ├─22127 /usr/bin/rbfeeder
             └─22136 /usr/bin/python3.9 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server ml>

Dec 25 19:01:42 RaspiNOAA rbfeeder[22168]: usb_claim_interface error -6
Dec 25 19:01:42 RaspiNOAA rbfeeder[22168]: rtlsdr: error opening the RTLSDR device: Device or resource busy
Dec 25 19:01:45 RaspiNOAA rbfeeder[22218]: Wed Dec 25 19:01:45 2024 CET  dump1090-rb 1.0.10 starting up.
Dec 25 19:01:45 RaspiNOAA rbfeeder[22218]: rtlsdr: using device #0: Generic RTL2832U OEM (AIRNAV, ADSB_1090, SN 00000010)
Dec 25 19:01:45 RaspiNOAA rbfeeder[22218]: usb_claim_interface error -6
Dec 25 19:01:45 RaspiNOAA rbfeeder[22218]: rtlsdr: error opening the RTLSDR device: Device or resource busy
Dec 25 19:01:48 RaspiNOAA rbfeeder[22257]: Wed Dec 25 19:01:48 2024 CET  dump1090-rb 1.0.10 starting up.
Dec 25 19:01:48 RaspiNOAA rbfeeder[22257]: rtlsdr: using device #0: Generic RTL2832U OEM (AIRNAV, ADSB_1090, SN 00000010)
Dec 25 19:01:48 RaspiNOAA rbfeeder[22257]: usb_claim_interface error -6
Dec 25 19:01:48 RaspiNOAA rbfeeder[22257]: rtlsdr: error opening the RTLSDR device: Device or resource busy

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34295
Re: rtlsdr: error opening the RTLSDR device: Device or resource busy
« Reply #1 on: December 25, 2024, 07:55:26 PM »
I would suggest that RB feeder is trying to uses its internal 1090 but as the stick is already in use with the FR24 1090 is cannot connect.  Can you post your ini file with your details redacted

Alan
« Last Edit: December 25, 2024, 07:57:32 PM by Runway 31 »

ea5xq

  • New Member
  • *
  • Posts: 3
Re: rtlsdr: error opening the RTLSDR device: Device or resource busy
« Reply #2 on: December 25, 2024, 08:42:37 PM »
Thanks

here is the rbfeeder.ini

[client]
network_mode=false
log_file=/var/log/rbfeeder.log

sn=EXTRPI657091

#device=00000010

lat=39.917340000000003

lon=-0.0071050000000000002

alt=13

[network]
mode=beast
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.9 /usr/bin/mlat-client

[dump978]
dump978_enabled=false

And the fr24feed.ini

receiver="avr-tcp"
host="127.0.0.1:30002"
bs="no"
raw="no"
mlat="yes"
mlat-without-gps="yes"


Thanks

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34295
Re: rtlsdr: error opening the RTLSDR device: Device or resource busy
« Reply #3 on: December 25, 2024, 09:37:41 PM »
Under Client, change network_mode=false to network_mode=true

Had a look at EXTRPI657091 and you are showing aircraft

Alan
« Last Edit: December 25, 2024, 09:40:01 PM by Runway 31 »

ea5xq

  • New Member
  • *
  • Posts: 3
Re: rtlsdr: error opening the RTLSDR device: Device or resource busy
« Reply #4 on: December 29, 2024, 07:27:53 PM »
Thanks!, it worked like a charm, now I am able to feed three aggregators

bvb40170

  • New Member
  • *
  • Posts: 11
Re: rtlsdr: error opening the RTLSDR device: Device or resource busy
« Reply #5 on: January 31, 2025, 07:24:10 PM »
Hi!   I'm having the same problem.  I've changed the .ini under client to true (from false).
This didn't change anything and I'm still offline.  My station is EXTRPI025073

Help, please!
« Last Edit: January 31, 2025, 07:26:11 PM by bvb40170 »

abcd567

  • Hero Member
  • *****
  • Posts: 897
  • CYYZ - Toronto
Re: rtlsdr: error opening the RTLSDR device: Device or resource busy
« Reply #6 on: February 02, 2025, 08:13:25 AM »
Please post output of following command:
Code: [Select]
pgrep dump -l   
« Last Edit: February 02, 2025, 08:36:43 AM by abcd567 »