Debug commands
wiedehopf edited this page Jan 4, 2022
·
25 revisions
Pages 52
-
- Posting logs on the flightaware forum:
- Restarting a service (lighttpd is uses as an example, just replace that with the service you want to restart0
- Lighttpd
- dump1090-fa
- readsb
- dump978-fa
- Test the rtl-sdr receiver
- Undervoltage
- graphs1090
- airspy_adsb
- blacklist rtl dvb-t kernel drivers
- RPi Airspy lost samples
- dump1090-mutability
- Rudimentary sd-card test
Clone this wiki locally
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
for i in {1..4}; do
sudo dd if=/dev/urandom of=/run/testFile bs=1M count=50 status=none
cp /run/testFile /tmp
sync
sudo echo 3 > /proc/sys/vm/drop_caches
diff -s /run/testFile /tmp/testFile
done