Adding 978 UAT Feed

Discussion in 'Feeding' started by jdubner, Feb 15, 2020.

Tags:
  1. jdubner

    jdubner Member

    Raspberry Pi 3 with two receivers (repurposed from a Stratux project), ADSBX image, successfully feeding 1090ES data from 209.237.86.241. Running headless (ssh) and Grafana and stats -- all is good -- EXCEPT that I cannot get the second receiver to provide a 978 MHz feed.

    Code:
    $ rtl_sdr -f 978000000 -s 2083334 -g 48 -
    Found 2 device(s):
      0:  Stratux, LowPowerV2, SN: stratux:1090
      1:  Stratux, LowPowerV2, SN: stratux:978
    
    Using device 0: Generic RTL2832U OEM
    usb_claim_interface error -6
    Failed to open rtlsdr device #0.
    
    I've tried the rtl_sdr command line with and without all sorts of device codes but it should fall over to the free receiver without any -d option.

    Is this telling me I need to blacklist my second USB receiver? If so, how? All of my searching has turned up obsolete information -- things change a lot :-(

    TIA,
    Joe
     
  2. MDA

    MDA Administrator Staff Member

    Code:
    rtl_sdr, an I/Q recorder for RTL2832 based DVB-T receivers
    
    Usage:   -f frequency_to_tune_to [Hz]
            [-s samplerate (default: 2048000 Hz)]
            [-d device_index (default: 0)]
            [-g gain (default: 0 for auto)]
            [-p ppm_error (default: 0)]
            [-b output_block_size (default: 16 * 16384)]
            [-n number of samples to read (default: 0, infinite)]
            [-S force sync output (default: async)]
            filename (a '-' dumps samples to stdout)
    Try -d 1, index 0 is 1090 receiver and is used by dump1090.
     
  3. jdubner

    jdubner Member

    Thank you but I already had tried "-d 1" (that's what I meant by "with and without all sorts of device codes").

    Here's what using "-d 1" produces:
    Code:
    $ rtl_sdr -d 1 -f 978000000 -s 2083334 -g 48 -
    Found 2 device(s):
      0:  Stratux, LowPowerV2, SN: stratux:1090
      1:  Stratux, LowPowerV2, SN: stratux:978
    
    Using device 1: Generic RTL2832U OEM
    usb_claim_interface error -6
    Failed to open rtlsdr device #1.
    
    It's as if the kernal has already taken over device 1 for its own purposes (DVB) and rtl_sdr cannot find a receiver, hence my comment about possibly blacklisting required.
     
  4. MDA

    MDA Administrator Staff Member

  5. jdubner

    jdubner Member

    Thank you again, Marcin. But apparently that was already done for the ADSBX image because I have a file named no-rtl.conf in /etc/modprobe.d/ with the exact same contents specified in that thread:
    Code:
    $ cat no-rtl.conf
    blacklist dvb_usb_rtl28xxu
    blacklist rtl2832
    blacklist rtl2830
    
    How can I determine that? Some variant of 'ps'? And more to the point, how can I limit the drivers that the OS loads? I'm an old-time unix guy but Raspberry Pi has reduced me to the ability of a script kiddie :-(

    In any case, others must have this issue too. I followed a couple of older threads here about adding 978 MHz UAT but no joy.
     
  6. jdubner

    jdubner Member

    Arrgh! Fixed it.

    Needed to run the command as root.
    Code:
    $ sudo rtl_test -d 1
    Found 2 device(s):
      0:  Stratux, LowPowerV2, SN: stratux:1090
      1:  Stratux, LowPowerV2, SN: stratux:978
    
    Using device 1: 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.
    
    Info: This tool will continuously read from the device, and report if
    samples get lost. If you observe no further output, everything is fine.
    
    Reading samples in async mode...
    
    Now onward to making the 978 MHz receiver feed UAT aircraft . . .

    Thanks for helping, Marcin.
     
  7. MDA

    MDA Administrator Staff Member

    Nothing to thanks Joe. I'm glad that you solved problem.
     
  8. fire29

    fire29 New Member

    Since the forum wont let new members post...and a similar issue.

    Setup a new 978 feed. Its registering, but is not picking up any peers, and therefore I assume not feeding data.
     
  9. wiedehopf

    wiedehopf Administrator Staff Member

    Peers as in MLAT?

    There is no MLAT for 978, all airplanes on that frequency have ADS-B.
     
  10. K4HLW

    K4HLW Moderator

    No Peers for 978 because no MLAT needed, by design all 978 traffic has GPS coordinates.