Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Unfortunately I don't have another aerial to try and it would likely cost more than the device to buy one. Can you think of anything I can try which would be guaranteed to get some kind of signal. I'm thinking that setting the frequency to that of a local radio station should get me something other than static even if I've chosen the wrong mode and I'm guessing the right mode would be "WFM (stereo)". On starting the application I am seeing:
Code:
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.8
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
Could not resolve property : pattern10600
Could not resolve property : pattern10600
Could not resolve property : pattern10600
Could not resolve property : pattern10600
Could not resolve property : pattern10600
Could not resolve property : pattern10600
With the "Could not resolve property" error repeated a good many times before this block. They look to me like simple advisories rather than errors but am I wrong here?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by sgosnell
ATC doesn't broadcast on FM, in case you didn't know. Aviation frequencies worldwide are VHF AM.
Thanks, yes, I'd realised that -- see the above post using a local FM station for troubleshooting in case the frequencies I've found for ATC at my local airport are out of date.
Take any piece of wire about 75cm long (1/4 wavelength of 100MHz (FM band in UK)).
Strip insulation from last 1-2cm. Poke this into the central bit (it's usually hollow) of the aerial socket on your dongle, bend the wire back on itself a couple of times if it is loose in the central connector. Do NOT short it to the circular, outer metal bit (that is for connecting to the braid round a CoAx cable). We don't need this.
....Also, some SDR implementations need you to "Start" the radio, once you have set the tuning, demodulation etc. Have you missed the "Start" or equivalent button?
As for "Could not resolve property : pattern10600" a search leads to this:
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Thanks, the link was helpful in that I know I don't ahve to blacklist any modules as they're not listed:
Code:
rmmod dvb_usb_rtl28xxu rtl2832
rmmod: ERROR: Module dvb_usb_rtl28xxu is not currently loaded
rmmod: ERROR: Module rtl2832 is not currently loaded
I also know that rtl_test seems to be working.
Oh, yes, at first I hadn't realised there was a start button but I found it soon enough. It's really odd -- I'm definitely hearing "radio" type static but just don't get anything other than noise no matter which channel I tune it to. I'm fairly sure I'd recognise information being received even if I'd chosen the wrong mode or it was digital as information just sounds different to noise in my experience.
I'm certainly tending towards it being broken but can't help thinking I may just be doing something silly, shame I was looking forward to messing about.
The static you hear could be caused by your computer, CFL bulbs or other various electronic devices in your house. A simple wire antenna may not work in this instance. You could try one of the live distributions in the link below to verify it is not a driver problem.
GRC aka Gnu Radio Companion has many python scripts for standard signals. You need to run these to convert signals to audio that makes sense to mortals. Otherwise the waterfall stuff tells you where in the frequencies you're currently seeing a signal to tune to that is potentially not noise. The Hak5 crew have a couple youtube videos on it. From what I recall the realtek e4000 chipset was the one that worked well and came with an antennae for $20-ish. The HakRF one is more high end and has broadcasting potential? Which also requires HAM licensing and stuff like that. You might have better luck running another distro or chroot-ing into such an install from your familiar base distro. Many means to an end.
Or you could just do the easy thing and buy a scanner that works out of the box, guaranteed. Perhaps not as much fun, but if your main interest is listening to radio signals it will get you there.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by sgosnell
Or you could just do the easy thing and buy a scanner that works out of the box, guaranteed. Perhaps not as much fun, but if your main interest is listening to radio signals it will get you there.
I wouldn't mind playing around with ADS-B also if I can get things working and perhaps other things later. Air band scanners seem pretty expensive also. The idea here was to buy a cheap device with a few uses and play a little as well.
I know what you mean though -- hardware would be a lot easier as you know whether it's working or not out of tee box and it would likely work better.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Turns out that I didn't have the driver loaded in Windows (forgot to check the settings) so that's not a valid test. However, I booted GNURadio live DVD in VirtualBox and I get the same thing in gqrx-sdr -- just static. So, I think my stick must be faulty. Oh, well, might have to buy another. If it turns out to be me that's faulty in the long run I can always use two or pass one on to a friend.
on my system after a second (my city doesnt have an airport, so these airplanes are above in the air...):
Hex Mode Sqwk Flight Alt Spd Hdg Lat Long Sig Msgs Ti/
-------------------------------------------------------------------------------
49d1cd S 4425 TVQ6952 10631 918 142 46.618 19.097 62 107 0
4baa6a S 3446 THY1ZU 11270 937 130 47.204 18.680 63 63 0
Btw. I regularry use my dongle to listen to NOAA...
gqrx, etc is a little bit buggy, there can be problems with the pulseaudio, resampling, modulation, etc. try the rtl_test and dump1090, they are simple, so better to test the equipment itself.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Everything looks fine, rtl_test gives:
Code:
rtl_test
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
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...
lost at least 84 bytes
^CSignal caught, exiting!
User cancel, exiting...
Samples per million lost (minimum): 3
I probably do need to find a bit of wire and make an antenna for testing but I still think it's odd that I'm, as far as I know, inputting the 96.3MHZ for the local RM station and hearing nothing different to any other frequency.
Is that an analog radio station? Modulation? ( without *ANY* antenna you get nothing, caused by the connector's shield, so yes a piece of wire is also needed ).
So the dongle itself works correctly. The input
Download/compile dump1090, the ATC is fixed modulation and frequency, and there is no soundcard/sound daemon dependency.
I remember that I had a simple fm radio utility it was always send me static noise, and later I found it that it could not use the tuner correctly, so I set the freq in it, but in fact freqency was something default ehh
rtl_test -t works with specific tuner, that's not a problem!
from the manpage:
" -t enable Elonics E4000 tuner benchmark] "
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.