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
Rep:
How easy/hard is SDR on Linux?
I am considering buying a cheap USB SDR, probably one of these (well, OK, I'm almost certainly purchasing one in the next couple of weeks unless I find it would be a waste of money): http://www.amazon.co.uk/Receiver-RTL...7&keywords=sdr
I like the idea of listening to aircraft control (I live fairly near an airport) and exploring anything else I may discover. I have been googling around and, while it seems there are lots of SDR packages in Debian, most tutorials and the like seems to suggest that one needs to clone GIT repositories and compile things to get the devices working.
So, how easy is it to get SDR working under Linux and do the tools need a lot of knowledge to use?
I'm not too worried about compiling from GIT and the like, but I would prefer just apt-get for simplicities sake so uninstalling is easier and the like. I also don't mind reading a lot of material about SDR and radio fundamentals but it would be good to know some decent starter reading.
Any SDR people out there have any advice?
I have an sdr setup on debian. It was a little bit hard for me to get it work with pulseaudio, but finally it works.
But you need an sdr with a recommended tuner chip. As I remember the ubuntu packages works out of the box (tried that out before starting to compile, etc.) with a good hardware (tuner chip).
I tried two nameless chinese usb tv tuner, both was working, but one of them is limited in frequency range ( caused by the tuner ), so you should choose that correctly, that's the secret
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Well, I ordered the card linked to not long after posting and it arrived last night. I tried to install gnuradio this morning but the package seems to be broken in Sid -- unresolved dependencies. Is there an alternative?
I'll try to play with Windows to confrm the device works but, as I understand it, I can't use a VirtualBox VM under my current installs because the USB bandwidth (or latency?) is too bad?
I'll try it on my desktop too, also running Sid, in case it's just a package conflict -- doesn't seem like it though.
Check an older package from the http://ftp.fsn.hu/debian/pool/main/g/gnuradio/ and install it with dpkg -i, after that apt-get -f install, if it can resolv the dependencies... I can check my version on monday...
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by derive
Check an older package from the http://ftp.fsn.hu/debian/pool/main/g/gnuradio/ and install it with dpkg -i, after that apt-get -f install, if it can resolv the dependencies... I can check my version on monday...
Thanks, heading home now [eventually] so I might try that later tonight.
As I mentioned, I am not against compiling but it would make it a lot easier if I could use packages on all my machines.
Have you listened to Air Traffic Control at all yourself?
I may actually use the device as a digital TV stick if it works and just play too, of course.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
IT seems that I can now install gnuradio and gqrx-sdr on both machines I've tried it on. I think I had problems with repositories earlier.
I'll report back upon my failures.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
I have gnuradio installed and have started it and it seems to detect the device. However, when I start playback I can't seem to find a channel which provides me with anything that sound like voice. Is there any way I can verify that this is working at all will it, for example, tune into my local FM radio broadcaster in the UK and, if so, what are the settings? I dialled in what I thought was the frequency of the local FM station but I didn't even get a change in the static using any of hte FM modes.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by tredegar
If you are going to listen to ATC, you might want to know where the planes are...
Yeah, I had looked at that but for the time being I'm just trying to work out whether my unit's faulty or not. I'm fairly close to an airport and I've found the various ATC frequencies but I'm getting nothing on any of them. The device is definitely detected as gnuradio produces static when it's plugged in but doesn't do anything when it's not. The provided aerial is tiny but I would expect to, at least, hear something when tuned to the local radio station but I can't get anything at all. There's, perhaps, something monumentally obvious I'm missing here?
You might need to check which modules are being loaded when it is plugged in. Maybe blacklist them, and try again.
I forget the details, but when I played with gnuradio, I had trouble if the kernel decided I had plugged in a DVB-T stick and therefore assumed I wanted to watch TV, when I just wanted to play with gnuradio.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
How do I go about finding out what is loaded? I tried dmesg but just see:
Code:
[ 8339.670413] usb 3-2: new high-speed USB device number 2 using xhci_hcd
[ 8339.866942] usb 3-2: New USB device found, idVendor=0bda, idProduct=2838
[ 8339.866954] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8339.866959] usb 3-2: Product: RTL2838UHIDIR
[ 8339.866963] usb 3-2: Manufacturer: Realtek
[ 8339.866967] usb 3-2: SerialNumber: 00000001
Will list all the modules that are loaded.
You could run lsmod > before on a freshly booted machine, then plug in the RTL2838 and run lsusb > after, then compare before with after.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Running "lsmod | wc -l" before and after insertion returns the same value of 121 and I can't see anything in the listing that suggests it's for the device. It's seen with lsusb though (as "Bus 003 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T") and, as mentioned, when I fire up gnuradio it does seem to see the device I just don't get anything that sounds like a broadcast.
I did fire up an SDR program under Windows also and couldn't find anything with that either. So, I think that either the device is faulty or I'm doing something wrong here. I'm not sure I can be bothered with the returns process but if I can confirm whether or not the device is faulty I'll know whether to buy another or not.
If it doesn't work with linux or windows, think you are correct: The device is faulty.
I know the supplied aerial is small and cheap, so maybe try a different aerial if you can.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.