RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Scanners and Receivers Forums > Software Defined Radio

Software Defined Radio A forum for general discussion of software defined radio (SDR) receiver equipment.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-2012, 5:13 PM
KS4JU's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2011
Posts: 54
Default Using the Raspberry Pi and a RTL2832U Stick for SDR over Ethernet

Well, right now we can't use the RTL2832U SDR stick and Raspberry Pi to make a cheap self contained SDR receiver, but we can make half of one. The Raspberry Pi will allow you to install the RTL drivers which also contains a tcp server. It turns out that you can plug the RTL2832U stick directly into the Pi and send the SDR data over ethernet to a client computer running SDR Sharp. So in essence you get a cheap ethernet enabled SDR receiver for about $60. The system also works well when plugged into a wireless N bridge. It's kind of cool to run SDR Sharp on your laptop while the Raspberry and RTL2832U remains near the antenna point. If you are interested in building this project you can find the instructions at

Raspberry Pi as Remote Server for RTL2832u SDR | Ham Radio Science
__________________
KS4JU
Ham Radio Science
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 10-13-2012, 8:47 PM
Markb's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Feb 2002
Location: Planet Earth
Posts: 551
Default

That sounds pretty sweet! That was what I was shooting for in the thread I started a few weeks ago. Didn't think about running it over Ethernet. Imagine setting up one of these on a mountaintop!
Reply With Quote
  #3 (permalink)  
Old 10-13-2012, 10:37 PM
Markb's Avatar
Member
  Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Feb 2002
Location: Planet Earth
Posts: 551
Default

Sorry about the dupe post!!!!

That sounds very cool! That was kinda what I was shooting for in the thread I started a few weeks ago. I was originally thinking along the lines of publishing a feed thru RR. Didn't think about running it over Ethernet.
My parents' house is about 1500' overlooking the Los Angeles/Orange County area and it would be great to build a self-contained unit to run from there.
Another thought I had was to build one into an ammo can or Pelican box. Add a solar panel and battery like you mentioned and you have a portable unit, just need network access.
Gonna go order me some Pi!!!!!

Last edited by Markb; 10-13-2012 at 10:54 PM..
Reply With Quote
  #4 (permalink)  
Old 11-10-2012, 11:57 PM
Member
   
Join Date: Feb 2011
Location: Quebec
Posts: 105
Default

do you guys have instability issue with it ?

got a lot of crash:

to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
comm recv socket error
Signal caught, exiting!
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_write_reg failed with -4
bye!
Reply With Quote
  #5 (permalink)  
Old 11-11-2012, 9:18 AM
KS4JU's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2011
Posts: 54
Default

Be sure that you are using the latest Raspian Wheezy operating system on your Pi. It might be a good idea to enable the new turbo mode when you first install it. This option will be available from a menu when you first boot the new installation. Probably best not to have any other software running while you are running the RTL server. This project seems to work reasonably well most of the time.
__________________
KS4JU
Ham Radio Science
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 11-11-2012, 10:47 AM
Member
   
Join Date: Feb 2011
Location: Quebec
Posts: 105
Default

I did enable turbo mode, just did not see it kick in yet.

I do think my image is up to date but will take a look.
I guess linux did not change at all in the last 10 years always have to fight to get it to work.

Thanks
Reply With Quote
  #7 (permalink)  
Old 11-13-2012, 9:31 PM
Member
   
Join Date: Feb 2011
Location: Quebec
Posts: 105
Default

redid the entire thing and still same issue, is there other than SDR# tcp client out there i can use to test ?
I want to know if it my client or my server the issue
Reply With Quote
  #8 (permalink)  
Old 12-08-2012, 5:31 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

sudo apt-get install git
sudo apt-get install cmake

Worked fine but

sudo apt-get install libusb-1.0-0.dev
Returns:
E: Invalid operation install libusb-1.0-0.dev

sudo apt-get install build-essential
Returns:
E: Invalid operation install build-essential


In reading through the HamRadioSciece site the first step says:

1. Install the latest Debian release on your Pi and update it.

Is this the same as Rasbian or do I need to install actual Debian?

Last edited by Bellingham_Scanner; 12-08-2012 at 6:23 PM..
Reply With Quote
  #9 (permalink)  
Old 12-08-2012, 6:26 PM
KS4JU's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2011
Posts: 54
Default

Most likely it means that the installation package can't be found. Assuming you are running Debian Wheezy and the Pi is connected to the internet try the following:

sudo apt-get update
sudo apt-get upgrade

Then try the install again. Unless something has changed in the Debian repositories it should work. If not maybe someone here with much better Linux chops can chime in............
__________________
KS4JU
Ham Radio Science
Reply With Quote
Sponsored links
  #10 (permalink)  
Old 12-08-2012, 6:31 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

Quote:
Originally Posted by KS4JU View Post
sudo apt-get update
sudo apt-get upgrade
Yeah, I already tried that.
Reply With Quote
  #11 (permalink)  
Old 12-08-2012, 9:47 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

Did a little Googleing and it would seem my package cache was dirty

Anyway I found a list of commands to run from another forum where someone was having the same problem with installing build-essential

Open a Terminal and type:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install build-essential
sudo apt-get clean
sudo apt-get autoremove

This got everything straightened out and I was able to install build-essential and lib-usb
Reply With Quote
  #12 (permalink)  
Old 12-08-2012, 10:57 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

Now I can not get past step 4

4. Before this will work you will need to locate your RTL directory using the file manger where the drivers where downloaded and copy the rules file into the etc/udev/rules.d directory.

What is the rules file and where is it found?
Reply With Quote
  #13 (permalink)  
Old 12-09-2012, 10:16 AM
Member
   
Join Date: Feb 2011
Location: Quebec
Posts: 105
Default

Should be in rtl-sdr, if you followed the build procedure be doing a cd .. You should find yourself in the proper folder
Reply With Quote
  #14 (permalink)  
Old 12-09-2012, 1:36 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

Quote:
Originally Posted by Pape View Post
Should be in rtl-sdr, if you followed the build procedure be doing a cd .. You should find yourself in the proper folder
LOL There is is! I must have looked at this directory a million times last night.

Now I feel dumb

Now I feel even dumber, after all this apparently it rtl-sdr only works on the rtl2832u sticks with the E4000 chip not the newer R820T chip.

As I get a ton of errors running rtl-sdt having to do with not being able find the E4000 chip.

Last edited by Bellingham_Scanner; 12-09-2012 at 2:20 PM..
Reply With Quote
  #15 (permalink)  
Old 12-09-2012, 4:56 PM
KS4JU's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2011
Posts: 54
Default

Actually the RTL drivers have been updated to work with the R820T sticks. If the stick can't be found it is usually a problem with the rules file. First of all check that you copied the rules file provided in the RTL distribution to the etc/udev/rules.d directory on the Pi. You might want to open the rules file with a text editor and see if the R820T exists in the rules file.
__________________
KS4JU
Ham Radio Science
Reply With Quote
Sponsored links
  #16 (permalink)  
Old 12-09-2012, 6:18 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

Here is the output I get trying to connect to the PI running rtl_tcp

Code:
pi@raspberrypi ~ $ rtl_tcp -a 192.168.1.127
Found 1 device(s).
Found Rafael Micro R820T tuner
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
Using ezcap USB 2.0 DVB-T/DAB/FM dongle
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
WARNING: Failed to set sample rate.
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
WARNING: Failed to set center freq.
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_demod_write_reg failed with -1
rtlsdr_demod_read_reg failed with -1
rtlsdr_write_reg failed with -1
rtlsdr_write_reg failed with -1
listening...
Use the device argument 'rtl_tcp=192.168.1.127:1234' in OsmoSDR (gr-osmosdr) sou rce
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
client accepted!
set gain mode 1
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
set sample rate 2048000
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
set freq 100000000
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
set freq correction 0
worker cond timeout
Signal caught, exiting!
comm recv bye
Signal caught, exiting!
all threads dead..
listening...
Use the device argument 'rtl_tcp=192.168.1.127:1234' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
client accepted!
all threads dead..
listening...
Use the device argument 'rtl_tcp=192.168.1.127:1234' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
comm recv socket error
Signal caught, exiting!
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_write_reg failed with -4
bye!
pi@raspberrypi ~ $
I swear I saw an error before about not being able to fine the E4000
Reply With Quote
  #17 (permalink)  
Old 12-09-2012, 6:53 PM
KS4JU's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Jun 2011
Posts: 54
Default

Well, at least the Pi is finding the R820T. It just can't access it. Some users have reported having this same issue which is due to the power supply not providing enough power to the USB ports on the Raspberry Pi.

See
https://groups.google.com/forum/#!ms...A/illyXjSNIqcJ

and
Getting Started With The Raspberry Pi Is Not As Easy As Pie | TechCrunch
__________________
KS4JU
Ham Radio Science
Reply With Quote
  #18 (permalink)  
Old 12-10-2012, 5:48 AM
Member
   
Join Date: Feb 2011
Location: Quebec
Posts: 105
Default

Yup got something similar when I was running the PI on 4 AA.
Switched to 1 amp cell phone charger fixed that but still it crash when I connect
Reply With Quote
  #19 (permalink)  
Old 12-10-2012, 8:50 AM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 197
Default

The power supply I am using is rated 5.1V@2Amps. TP1 and TP2 measure 4.78 volts with everything plugged in.
Reply With Quote
  #20 (permalink)  
Old 12-10-2012, 11:16 AM
Member
   
Join Date: Feb 2011
Location: Quebec
Posts: 105
Default

this is weird, can you add a usb power hub and connect the rlt to it ?
Some devices require more power than what the PI usb can deliver, don't think this is the case but nothing to lose neither
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 4:58 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2011 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions