Announcement

Collapse
No announcement yet.

Problem fetching data from dump1090. Error on new ADS-B site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem fetching data from dump1090. Error on new ADS-B site

    So I setup my second location in Michigan with an identical setup to the one I used in Florida. I used a raspberry pi zero W, the Pro Stick, the dual band pass signal filter, the 17 cm indoor antennae. I created the image in Etcher from the downloaded piaware-sd-card-8.2.img I configured the device for my lan and found and connected to it adding the site to my FlightAware. However I see absolutely traffic. I get a pop up in my Skyaware map:Problem fetching data from dump1090.
    AJAX call failed (error: Not Found). Maybe dump1090 is no longer running?
    The displayed map data will be out of date​.
    A look to my log file shows:
    12MHz clock
    [2023-09-28 13:57 EDT] Starting faup1090: /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.770 --lon -86.413
    [2023-09-28 13:57 EDT] Started faup1090 (pid 1620) to connect to dump1090-fa
    [2023-09-28 13:57 EDT] ADS-B data program 'dump1090-fa' is listening on port 30005, so far so good
    [2023-09-28 13:57 EDT] mlat-client(746): Lost connection to localhost:30005
    [2023-09-28 13:57 EDT] mlat-client(746): Reconnecting in 30.0 seconds
    [2023-09-28 13:57 EDT] faup1090 exited normally
    [2023-09-28 13:57 EDT] will reconnect to dump1090-fa in 30 seconds
    [2023-09-28 13:57 EDT] mlat-client(746): Beast-format results connection with 127.0.0.1:30104: connection lost
    [2023-09-28 13:57 EDT] lost connection to dump1090-fa via faup1090
    [2023-09-28 13:57 EDT] mlat-client(746): Connection to localhost:30005 lost: [Errno 111] Connection refused
    [2023-09-28 13:57 EDT] mlat-client(746): Reconnecting in 30.0 seconds
    [2023-09-28 13:57 EDT] mlat-client(746): Connection to localhost:30005 lost: [Errno 111] Connection refused
    [2023-09-28 13:57 EDT] 0 msgs recv'd from dump1090-fa (0 in last 5m); 0 msgs sent to FlightAware​

    A check of rtl_test reports:

    pi@piaware:/var/log $ sudo rtl_test
    Found 1 device(s):
    0: Realtek, RTL2832U, SN: 00001000

    Using device 0: Generic RTL2832U
    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...
    Allocating 15 zero-copy buffers

    Can somebody point me in the right direction. I'm not sure if I have a configuration error or a hardware issue.

    Thanks in advance

    Tom

  • #2
    What is output of following command?

    sudo systemctl status dump1090-fa



    .

    Comment


    • #3
      ● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
      Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor p>
      Active: active (running) since Sat 2023-09-30 19:09:50 UTC; 15s ago
      Docs: https://flightaware.com/adsb/piaware/
      Main PID: 27694 (dump1090-fa)
      Tasks: 3 (limit: 876)
      CPU: 8.792s
      CGroup: /system.slice/dump1090-fa.service
      └─27694 /usr/bin/dump1090-fa --quiet --device-type rtlsdr --device>

      Sep 30 19:09:50 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAwar>
      Sep 30 19:09:50 piaware dump1090-fa[27694]: Sat Sep 30 19:09:50 2023 UTC dump1>
      Sep 30 19:09:51 piaware dump1090-fa[27694]: rtlsdr: using device #0: Generic RT>
      Sep 30 19:09:51 piaware dump1090-fa[27694]: Found Rafael Micro R820T tuner
      Sep 30 19:09:51 piaware dump1090-fa[27694]: rtlsdr: tuner gain set to about 58.>
      Sep 30 19:09:51 piaware dump1090-fa[27694]: adaptive: using 10% duty cycle
      Sep 30 19:09:51 piaware dump1090-fa[27694]: adaptive: enabled adaptive gain con>
      Sep 30 19:09:51 piaware dump1090-fa[27694]: adaptive: enabled dynamic range con>
      Sep 30 19:09:51 piaware dump1090-fa[27694]: Allocating 4 zero-copy buffers
      lines 1-19/19 (END)...skipping...
      ● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
      Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
      Active: active (running) since Sat 2023-09-30 19:09:50 UTC; 15s ago
      Docs: https://flightaware.com/adsb/piaware/
      Main PID: 27694 (dump1090-fa)
      Tasks: 3 (limit: 876)
      CPU: 8.792s
      CGroup: /system.slice/dump1090-fa.service
      └─27694 /usr/bin/dump1090-fa --quiet --device-type rtlsdr --device-index 0 --gain 60 --adaptive-range --adaptive-du>

      Sep 30 19:09:50 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
      Sep 30 19:09:50 piaware dump1090-fa[27694]: Sat Sep 30 19:09:50 2023 UTC dump1090-fa 8.2 starting up.
      Sep 30 19:09:51 piaware dump1090-fa[27694]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
      Sep 30 19:09:51 piaware dump1090-fa[27694]: Found Rafael Micro R820T tuner
      Sep 30 19:09:51 piaware dump1090-fa[27694]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
      Sep 30 19:09:51 piaware dump1090-fa[27694]: adaptive: using 10% duty cycle
      Sep 30 19:09:51 piaware dump1090-fa[27694]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (s>
      Sep 30 19:09:51 piaware dump1090-fa[27694]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
      Sep 30 19:09:51 piaware dump1090-fa[27694]: Allocating 4 zero-copy buffers

      Comment


      • #4
        sudo apt update

        sudo apt install netcat-traditional

        nc localhost 30005

        Do you see any output of last command?

        (Break continuous flow of data by pressing Ctrl and C keys together)




        Also give following command. Do you see any output?

        nc localhost 30003

        (Break continuous flow of data by pressing Ctrl and C keys together)


        .
        .

        Comment


        • #5
          Negative. netcat-traditional appeared to install without issue but
          nc localhost 30003 returned nothing:

          pi@piaware:~ $ sudo apt install netcat-traditional
          Reading package lists... Done
          Building dependency tree... Done
          Reading state information... Done
          The following NEW packages will be installed:
          netcat-traditional
          0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
          Need to get 66.0 kB of archives.
          After this operation, 134 kB of additional disk space will be used.
          Get:1 http://www.flightaware.com/mirror/raspbian/raspbian bullseye/main armhf netcat-traditional armhf 1.10-46 [66.0 kB]
          Fetched 66.0 kB in 1s (81.0 kB/s)
          Selecting previously unselected package netcat-traditional.
          (Reading database ... 50407 files and directories currently installed.)
          Preparing to unpack .../netcat-traditional_1.10-46_armhf.deb ...
          Unpacking netcat-traditional (1.10-46) ...
          Setting up netcat-traditional (1.10-46) ...
          Processing triggers for man-db (2.9.4-2) ...
          pi@piaware:~ $ nc localhost 30005
          pi@piaware:~ $

          Comment


          • #6
            OK, do this:

            Code:
            sudo systemctl stop dump1090-fa
            
            sudo dump1090-fa --interactive
            I see output of the second command as shown in screenshot below.

            Do you see such output from 2nd command?
            If not, then most likely your dongle is NOT getting any input from antenna.
            This can be due to loose antenna connectors, or wrong connectors, or internally broken antenna coax cable, or defective antenna.


            dump1090-fa-interactive.png
            Last edited by abcd567; 2023-09-30, 22:47.

            Comment


            • #7
              Antennae looks good I get continuity albet ~.6 ohms with the 17cm mast unscrewed.
              I'm thinking the SDR is defective

              Comment


              • #8
                Un-plug and re-plug the SDR dongle, and reboot the Pi. Also try different USB port

                If you are using a USB extender cable to connect SDR to Pi, remove that cable and plug the SDR directly into Pi
                Last edited by abcd567; 2023-09-30, 23:45.

                Comment


                • #9
                  I've done all of that. I am using a usb hub but can't eliminate it. The pi Zero W has USB micro so I'm using the hub with a micro connection.
                  Maybe I look around for a Pi 4B and try that .
                  That way the only things left with be the dongle and the antenna.

                  Comment


                  • #10
                    Okay - performed a clean install on a Pi4 without the usb hub. I get the same reults: 1090 Receiver error - Not connected to Mode S receiver. dump1090-fa --interactive outputs no data stream. Same results with or without the filter.
                    I think the dongle is bad. I'm contacting piaware store

                    Comment


                    • #11
                      Oops! looks like my interactive stream is active now. I guess I needed more patience in this remotely travelled airspace.
                      Currently on the Pi4 without filter and without usb hub. I'm going to monitor and try switching back to the Pi Zero to see what transpires there.
                      Thanks for all the help abcd567

                      Comment

                      Working...
                      X