FlightAware Discussions

My Piaware stopped working after 2 weeks

I’ve been running a Pi Zero W with Piaware and a Prostick plus (blue) dongle for 2 weeks now.

This morning I found it was not working, I can’t even ssh into it nor ping the Pi.

I reimaged my card with a backup from last week which worked since last week, but it didn’t solved the problem.

I finally isolated the problem to the dongle: If it’s connected wifi doesn’t work thus it’s not accesible and it is not reporting either to FA, when I unplug the dongle, wifi is back again (without needing to reboot), when I plug it again wifi goes off.

Here is a log showing when I plugged (08:57:40) and unplugged it (09:00:59):

pi@piaware:~ $ sudo journalctl -u dump1090-fa -n50 --no-pager
– Logs begin at Sat 2020-09-05 11:58:14 CDT, end at Fri 2020-09-11 09:01:41 CDT. –
Sep 11 08:55:35 piaware systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Sep 11 08:56:05 piaware systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Sep 11 08:56:05 piaware systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 18.
Sep 11 08:56:05 piaware systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:56:06 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:56:06 piaware dump1090-fa[2172]: Fri Sep 11 08:56:06 2020 CDT dump1090-fa 3.8.1 starting up.
Sep 11 08:56:06 piaware dump1090-fa[2172]: rtlsdr: no supported devices found.
Sep 11 08:56:06 piaware systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Sep 11 08:56:06 piaware systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Sep 11 08:56:37 piaware systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Sep 11 08:56:37 piaware systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 19.
Sep 11 08:56:37 piaware systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:56:38 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:56:38 piaware dump1090-fa[2206]: Fri Sep 11 08:56:38 2020 CDT dump1090-fa 3.8.1 starting up.
Sep 11 08:56:38 piaware dump1090-fa[2206]: rtlsdr: no supported devices found.
Sep 11 08:56:38 piaware systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Sep 11 08:56:38 piaware systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Sep 11 08:57:08 piaware systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Sep 11 08:57:08 piaware systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 20.
Sep 11 08:57:08 piaware systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:57:10 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:57:10 piaware dump1090-fa[2215]: Fri Sep 11 08:57:10 2020 CDT dump1090-fa 3.8.1 starting up.
Sep 11 08:57:10 piaware dump1090-fa[2215]: rtlsdr: no supported devices found.
Sep 11 08:57:10 piaware systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Sep 11 08:57:10 piaware systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Sep 11 08:57:40 piaware systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Sep 11 08:57:40 piaware systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 21.
Sep 11 08:57:40 piaware systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:57:42 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 11 08:57:42 piaware dump1090-fa[2317]: Fri Sep 11 08:57:42 2020 CDT dump1090-fa 3.8.1 starting up.
Sep 11 08:57:42 piaware dump1090-fa[2317]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Sep 11 08:57:42 piaware dump1090-fa[2317]: Detached kernel driver
Sep 11 08:57:42 piaware dump1090-fa[2317]: Found Rafael Micro R820T tuner
Sep 11 08:57:42 piaware dump1090-fa[2317]: rtlsdr: enabling tuner AGC
Sep 11 09:00:59 piaware dump1090-fa[2317]: cb transfer status: 5, canceling…
Sep 11 09:00:59 piaware dump1090-fa[2317]: cb transfer status: 5, canceling…
Sep 11 09:00:59 piaware dump1090-fa[2317]: rtlsdr: rtlsdr_read_async returned unexpectedly, probably lost the USB device, bailing out
Sep 11 09:00:59 piaware dump1090-fa[2317]: Fri Sep 11 09:00:59 2020 CDT Waiting for receive thread termination
Sep 11 09:00:59 piaware dump1090-fa[2317]: Reattaching kernel driver failed!
Sep 11 09:00:59 piaware dump1090-fa[2317]: Fri Sep 11 09:00:59 2020 CDT Abnormal exit.
Sep 11 09:00:59 piaware systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Sep 11 09:00:59 piaware systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Sep 11 09:01:29 piaware systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Sep 11 09:01:29 piaware systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 22.
Sep 11 09:01:30 piaware systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Sep 11 09:01:31 piaware systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Sep 11 09:01:31 piaware dump1090-fa[2799]: Fri Sep 11 09:01:31 2020 CDT dump1090-fa 3.8.1 starting up.
Sep 11 09:01:31 piaware dump1090-fa[2799]: rtlsdr: no supported devices found.
Sep 11 09:01:31 piaware systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Sep 11 09:01:31 piaware systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.

Thanks for your help.

Sounds like power issues.

Confirm with this command:

sudo dmesg --ctime | grep voltage

No output means probably no power issues, but i bet you’ll have plenty of messages.

1 Like

Thanks fir your help, but you lost the bet :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face:

There are no voltage related messages.

This is the dmesg report after:

  1. I rebooted without the dongle
  2. Connected the dongle (Got disconnected from wifi) 10:23:34
  3. Pi disconnected dongle 5 seconds later 10:23:39
  4. Physically disconnected the dongle (connected to wifi again) (10:29:41)
  5. Physically reconnected the dongle 10:32:54
  6. Pi disconnected dongle again 10:33:21
  7. Physically reconnected the dongle 10:34:17

[Fri Sep 11 10:21:53 2020] 8021q: 802.1Q VLAN Support v1.8
[Fri Sep 11 10:21:54 2020] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[Fri Sep 11 10:21:56 2020] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[Fri Sep 11 10:21:56 2020] warning: process `colord-sane’ used the deprecated sysctl system call with 8.1.2.
[Fri Sep 11 10:23:34 2020] Indeed it is in host mode hprt0 = 00021501
[Fri Sep 11 10:23:34 2020] usb 1-1: new high-speed USB device number 2 using dwc_otg
[Fri Sep 11 10:23:34 2020] Indeed it is in host mode hprt0 = 00001101
[Fri Sep 11 10:23:35 2020] usb 1-1: New USB device found, idVendor=0bda, idProduct=2832, bcdDevice= 1.00
[Fri Sep 11 10:23:35 2020] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Fri Sep 11 10:23:35 2020] usb 1-1: Product: RTL2832U
[Fri Sep 11 10:23:35 2020] usb 1-1: Manufacturer: Realtek
[Fri Sep 11 10:23:35 2020] usb 1-1: SerialNumber: 00001000
[Fri Sep 11 10:23:35 2020] usb 1-1: dvb_usb_v2: found a ‘Realtek RTL2832U reference design’ in warm state
[Fri Sep 11 10:23:35 2020] usb 1-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[Fri Sep 11 10:23:35 2020] dvbdev: DVB: registering new adapter (Realtek RTL2832U reference design)
[Fri Sep 11 10:23:35 2020] usb 1-1: media controller created
[Fri Sep 11 10:23:35 2020] dvbdev: dvb_create_media_entity: media entity ‘dvb-demux’ registered.
[Fri Sep 11 10:23:35 2020] i2c i2c-11: Added multiplexed i2c bus 12
[Fri Sep 11 10:23:35 2020] rtl2832 11-0010: Realtek RTL2832 successfully attached
[Fri Sep 11 10:23:35 2020] usb 1-1: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))…
[Fri Sep 11 10:23:35 2020] dvbdev: dvb_create_media_entity: media entity ‘Realtek RTL2832 (DVB-T)’ registered.
[Fri Sep 11 10:23:35 2020] r820t 12-001a: creating new instance
[Fri Sep 11 10:23:35 2020] r820t 12-001a: Rafael Micro r820t successfully identified
[Fri Sep 11 10:23:35 2020] Registered IR keymap rc-empty
[Fri Sep 11 10:23:35 2020] rc rc0: Realtek RTL2832U reference design as /devices/platform/soc/20980000.usb/usb1/1-1/rc/rc0
[Fri Sep 11 10:23:35 2020] rc rc0: lirc_dev: driver dvb_usb_rtl28xxu registered at minor = 0, raw IR receiver, no transmitter
[Fri Sep 11 10:23:35 2020] input: Realtek RTL2832U reference design as /devices/platform/soc/20980000.usb/usb1/1-1/rc/rc0/input0
[Fri Sep 11 10:23:35 2020] usb 1-1: dvb_usb_v2: schedule remote query interval to 200 msecs
[Fri Sep 11 10:23:35 2020] usb 1-1: dvb_usb_v2: ‘Realtek RTL2832U reference design’ successfully initialized and connected
[Fri Sep 11 10:23:35 2020] usbcore: registered new interface driver dvb_usb_rtl28xxu
[Fri Sep 11 10:23:40 2020] r820t 12-001a: destroying instance
[Fri Sep 11 10:23:40 2020] dvb_usb_v2: ‘Realtek RTL2832U reference design:1-1’ successfully deinitialized and disconnected
[Fri Sep 11 10:29:41 2020] ERROR::dwc_otg_hcd_urb_enqueue:501: Not connected

[Fri Sep 11 10:29:41 2020] usb 1-1: usbfs: usb_submit_urb returned -19
[Fri Sep 11 10:29:41 2020] usb 1-1: USB disconnect, device number 2
[Fri Sep 11 10:32:54 2020] Indeed it is in host mode hprt0 = 00021501
[Fri Sep 11 10:32:55 2020] usb 1-1: new high-speed USB device number 3 using dwc_otg
[Fri Sep 11 10:32:55 2020] Indeed it is in host mode hprt0 = 00001101
[Fri Sep 11 10:32:55 2020] usb 1-1: New USB device found, idVendor=0bda, idProduct=2832, bcdDevice= 1.00
[Fri Sep 11 10:32:55 2020] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Fri Sep 11 10:32:55 2020] usb 1-1: Product: RTL2832U
[Fri Sep 11 10:32:55 2020] usb 1-1: Manufacturer: Realtek
[Fri Sep 11 10:32:55 2020] usb 1-1: SerialNumber: 00001000
[Fri Sep 11 10:32:55 2020] usb 1-1: dvb_usb_v2: found a ‘Realtek RTL2832U reference design’ in warm state
[Fri Sep 11 10:32:55 2020] usb 1-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[Fri Sep 11 10:32:55 2020] dvbdev: DVB: registering new adapter (Realtek RTL2832U reference design)
[Fri Sep 11 10:32:55 2020] usb 1-1: media controller created
[Fri Sep 11 10:32:55 2020] dvbdev: dvb_create_media_entity: media entity ‘dvb-demux’ registered.
[Fri Sep 11 10:32:55 2020] i2c i2c-11: Added multiplexed i2c bus 12
[Fri Sep 11 10:32:55 2020] rtl2832 11-0010: Realtek RTL2832 successfully attached
[Fri Sep 11 10:32:55 2020] usb 1-1: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))…
[Fri Sep 11 10:32:55 2020] dvbdev: dvb_create_media_entity: media entity ‘Realtek RTL2832 (DVB-T)’ registered.
[Fri Sep 11 10:32:55 2020] r820t 12-001a: creating new instance
[Fri Sep 11 10:32:55 2020] r820t 12-001a: Rafael Micro r820t successfully identified
[Fri Sep 11 10:32:55 2020] Registered IR keymap rc-empty
[Fri Sep 11 10:32:55 2020] rc rc0: Realtek RTL2832U reference design as /devices/platform/soc/20980000.usb/usb1/1-1/rc/rc0
[Fri Sep 11 10:32:55 2020] rc rc0: lirc_dev: driver dvb_usb_rtl28xxu registered at minor = 0, raw IR receiver, no transmitter
[Fri Sep 11 10:32:55 2020] input: Realtek RTL2832U reference design as /devices/platform/soc/20980000.usb/usb1/1-1/rc/rc0/input1
[Fri Sep 11 10:32:55 2020] usb 1-1: dvb_usb_v2: schedule remote query interval to 200 msecs
[Fri Sep 11 10:32:55 2020] usb 1-1: dvb_usb_v2: ‘Realtek RTL2832U reference design’ successfully initialized and connected
[Fri Sep 11 10:33:21 2020] r820t 12-001a: destroying instance
[Fri Sep 11 10:33:21 2020] dvb_usb_v2: ‘Realtek RTL2832U reference design:1-1’ successfully deinitialized and disconnected
[Fri Sep 11 10:34:17 2020] ERROR::dwc_otg_hcd_urb_enqueue:501: Not connected

[Fri Sep 11 10:34:17 2020] usb 1-1: usbfs: usb_submit_urb returned -19
[Fri Sep 11 10:34:17 2020] ERROR::dwc_otg_hcd_urb_enqueue:501: Not connected

[Fri Sep 11 10:34:17 2020] dvb_usb_rtl28xxu 1-1:1.0: chip type detection failed -19
[Fri Sep 11 10:34:17 2020] usb 1-1: USB disconnect, device number 3
pi@piaware:~ $

Just to stay on the safe side, I switched to another power supply (official, usually powering a Pi3B 24/7) and the problem is still there.

Turn off power management.

How?

BTW, It worked fine for 2 weeks, and I just reimaged the SD with a 1 week old image, so any recent update should be gone.

To check the status - sudo iwconfig wlan0

To turn off power management - sudo iwconfig wlan0 power off

Turning off power management improved my connection, now eventually it reconnects wifi even if the dongle is connected, but most of the time wifi is not working.