LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2015, 01:34 PM   #1
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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?
 
Old 08-23-2015, 06:54 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,532

Rep: Reputation: Disabled
Basically it looks like you may have trouble getting drivers for some, that is why they are talking about the git repos.

If you are happy with compiling, & someone is working on a driver for your device, it should work out OK.
 
1 members found this post helpful.
Old 08-31-2015, 08:38 PM   #3
derive
Member
 
Registered: Apr 2014
Distribution: debian
Posts: 42

Rep: Reputation: Disabled
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

http://www.instructables.com/id/rtl-sdr-on-Ubuntu/
http://gqrx.dk/
http://packages.ubuntu.com/trusty/libs/rtl-sdr
 
1 members found this post helpful.
Old 09-04-2015, 12:54 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 09-04-2015, 01:26 PM   #5
derive
Member
 
Registered: Apr 2014
Distribution: debian
Posts: 42

Rep: Reputation: Disabled
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...
 
1 members found this post helpful.
Old 09-04-2015, 01:32 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by derive View Post
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.
 
Old 09-04-2015, 03:09 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 09-04-2015, 03:43 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 09-06-2015, 07:10 AM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
If you are going to listen to ATC, you might want to know where the planes are...

Slightly off-topic, but I have dump1090 running on my Raspian Pi with a RTL2838 DVB-T dongle, with a simple bent-wire aerial.

This tracks all the planes over SE England that are equipped with ADS-B (ie most of them).

I can watch air traffic in real time on my laptop's browser, and upload my air traffic data to
http://www.flightradar24.com/51.56,-0.27/9

This project was dirt cheap, and way too much fun.
 
1 members found this post helpful.
Old 09-06-2015, 07:25 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by tredegar View Post
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?
 
Old 09-06-2015, 08:19 AM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.
 
Old 09-06-2015, 08:23 AM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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
 
Old 09-06-2015, 09:10 AM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Code:
lsmod
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.
 
Old 09-06-2015, 09:28 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.

Edit: Sorry it's not gnuradio I'm using, as such, it's this:
https://packages.debian.org/wheezy-backports/gqrx-sdr

Last edited by 273; 09-06-2015 at 09:34 AM.
 
Old 09-06-2015, 09:40 AM   #15
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up sdr radio timthompson57069 Linux - Hardware 2 02-16-2015 08:38 PM
LXer: Handheld SDR Transceiver runs Linux on ARM/FPGA SoC LXer Syndicated Linux News 0 05-24-2013 05:11 PM
RHCE it's Hard Or Easy Or What ? $ome 1 Linux - Certification 5 12-18-2004 12:26 AM
Easy way to clone linux installed hard drive mobassir Linux - Software 6 01-12-2004 05:34 PM
Ram - Ddr/sdr ?? jt1020 Linux - Hardware 2 05-26-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration