HI
I’m trying to setup my new RPi2 and there are some issues over my Rpi B+ setup
I have 2 issues with the new PiAware 2.1.2 and the dump1090 1.2.2
Issue 1 is the PiAware client never receives any data from dump1090. Dump1090 is receiving data and displaying it correctly. It could be because of this line
/usr/bin/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005
This is what piaware says it runs to start the service. The problem I think is the word localhost - how can I change that to read my i.p. address of my Rpi e.g.
/usr/bin/faup1090 --net-bo-ipaddr 192.168.2.23 --net-bo-port 30005
Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.
usb_claim_interface error -6
Failed to open rtlsdr device #0.
I have already set the blacklist file up and it works with EVERY other version of dump1090 except this above one.
No amount of restarting , rebooting, or adding exact types into the blacklist file works.
There are no problems when updating my RPi b+ just the new ARM7 RPi2
OK, that should work then and if you’re not installing other dump1090s I can’t see those interfering.
Can you run through the exact install steps you’re doing?
(In particular, any other packages you’re installing, and the details of how you’re installing the blacklist would be handy)
Its also good not to “assume” people are newbies. And just because its the first time on the forum, it doesn’t negate the years of experience I have troubleshooting IT issues for my job. ANd if you didn’t know, you just need to ask and not assume!!
That saying, there could be an option somewhere in our profile which would indicate roughly the level of expertise. As is, I’ve been doing RPi ADSB for well over a year and know enough to be able to trouble shoot most problems, its only when things which should work as an upgrade (or even as a clean install) don’t.
Now that that’s out of the way…
Steps before it breaks…
Download latest Debian Wheezy and install onto Micro SD Card
Change the /etc/wpa_supplicant/wpa_supplicant.conf to read my wifi
Change /etc/network/interfaces to give a static IP
A little humility can go a long way especially when YOU’RE looking for help. It’s not good to “assume” anyone is here to help you, that way when someone steps up you can respond with a pleased, Thank You, even if it’s not at your so-called level of expertise.
And as far as having an option to indicate expertise level - why not an idiot level as well that everyone else gets to select?
I’m sure that given your years of experience in troubleshooting IT problems, you appreciate the need for complete, precise information when you’re troubleshooting. If I was to follow your steps above to try to reproduce it, I wouldn’t even have dump1090 installed. This description is missing at least:
the path to “no-rtl.conf” that you edited (or created? I have no file named no-rtl.conf on my wheezy install)
the steps you took to install piaware and dump1090
If I had to guess at the problem from the limited information I have, then there are a few possibilities:
Is dump1090 running when you’re not expecting it to, and you’re starting a second copy? check. Fire up ps and take a look.
Does rtl_test work? You may not even have rtl_test as I don’t know if you’re installing a copy of librtlsdr + tools or not, but if you do, that’s a simple way to check whether it’s a problem specifically with the dump1090 package or a wider problem with things that want to use librtlsdr.
Is the blacklisting effective? Does lsmod show stray modules loaded?
I did a wheezy install via raspbian-ua-netinst a few weeks ago specifically to check that the piaware/dump1090 packages worked OK on a vanilla install, and they did. So you are doing something differently to what I did. Let’s try to find out what that is.
After a fresh reboot, before starting up any services, what does lsmod report and what does rtltest -t report? Can you get access to the USB stick via rtltest? (And is this a fresh install? Is the USB hooked into a powered hub or direct to the Pi, power issues can be a major pain with the Pi’s.)
Plug in DVB-T USB
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr
mkdir build
cd build
cmake …/ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig
cd ~
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
sudo reboot
rtl_test –t
cd /etc/modprobe.d
The above is for a fresh install whichs works on my RPi B+
If I then upgrade PiAware as I have done on my working setup then it upgrades fine. But if I then upgrade dump1090 or build a new setup on my RPi 2 with the updated dump1090 as per flightaware.com/adsb/piaware/fil … _armhf.deb then it starts causing problems
OK, so at the end of step (7) you have a working system, right?
What do you mean when you say that you then upgrade piaware and it works fine? Are you doing that by manually installing a package, or via the web interface? Also I am a little confused because your steps install 2.1-2 already, which is the latest; an “upgrade” won’t actually install a new version.
What are the steps you take after that to install the new dump1090 from the debian package?
How do you go about disabling the dump1090 installed in step 6? (Because that was a manual install from source, the debian packaging system has no knowledge of it, so it’s not going to disable/replace any init.d scripts etc when you install the dump1090 debian package)
Can you check for stray modules via lsmod as I suggested, perhaps you have autodetach in your compiled version of librtlsdr (the dump1090 package provides a statically linked version so it will not use your system-wide versions of librtlsdr)
I also assume that you mean a Raspbian wheezy sdcard image, not a Debian wheezy image (AIUI, Debian wheezy will not work on a B+ as it’s built for armv7)
started with the Raspbian wheezy 2015-05-05 sdcard image from raspberrypi.org
booted on a Pi 2
logged in via ssh
skipped step 3 and most of step 4 as it’s directly connected, no wireless, and the default config works for me
ran step 5. The first rtl_test failed, the second rtl_test succeeded (as expected)
ran step 6. There is no install step here. I verified that dump1090 works OK when started manually.
ran step 7. You have a syntax error in your apt-get step but it’s harmless.
Now piaware is running but there is no dump1090 running.
If I start dump1090 by hand (./dump1090 --net --quiet) all is OK, piaware connects to dump1090, mlat starts, data is fed.
Stopping the existing dump1090 then installing the Flightaware package appears to work fine:
and piaware reconnects and restarts mlat and feeds data.
So unfortunately I cannot reproduce your problem from the steps you’ve given.
I guess the next step would be to arrange remote ssh access to your system so I can have a dig around (send me a PM or email oliver@mutability.co.uk)