Debug commands - wiedehopf/adsb-wiki GitHub Wiki
Posting logs on the flightaware forum:
enclose any log or code you post in ```, like this:
```
text
text
text
```
The correct symbol may not be on your keyboard, in that case you can copy the line below:
```
Restarting a service (lighttpd is uses as an example, just replace that with the service you want to restart0
sudo systemctl restart lighttpd
Lighttpd
sudo journalctl --no-pager -u lighttpd
ls /etc/lighttpd/conf-enabled
grep mod_setenv /etc/lighttpd/ -rnT
dump1090-fa
sudo journalctl --no-pager -u dump1090-fa
readsb
sudo journalctl --no-pager -u readsb
dump978-fa
sudo journalctl --no-pager -u dump978-fa
Test the rtl-sdr receiver
sudo bash -c "$(wget -nv -O - https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/rtl_test.sh)"
Undervoltage
sudo dmesg --ctime | grep voltage
bash -c "$(wget -nv -O - https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/throttled.sh)"
graphs1090
sudo journalctl --no-pager -u collectd
sudo /usr/share/graphs1090/graphs1090.sh
airspy_adsb
sudo journalctl --no-pager -u airspy_adsb
blacklist rtl dvb-t kernel drivers
echo -e 'blacklist rtl2832\nblacklist dvb_usb_rtl28xxu\nblacklist rtl8192cu\nblacklist rtl8xxxu\n' | sudo tee /etc/modprobe.d/blacklist-rtl-sdr.conf
RPi Airspy lost samples
Any other USB devices plugged in?
You can check throttling and voltage:
vcgencmd get_throttled
sudo dmesg --ctime | grep voltage
You can also try using force_turbo=1 in your /boot/config.txt if the RPi is switching CPU frequencies and that is causing a problem. (goes from scaling to performance governor) Note that some form of cooling is recommended.
dump1090-mutability
cat /var/log/dump1090-mutability.log
Rudimentary sd-card test
sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/simple-storage-test.sh)"