1. Basic setup
2. Wireless access
To see in the new version of the osmocom rtl-sdr package http://sdr.osmocom.org/trac/wiki/rtl-sdr the new TPC version, I decided to try to realize my idea about a small embedded rtl-sdr setup.
The basic idea was to run the small rtl-sdr util on a small embedded box connected with the dbv-t dongle at near the antenna, and transmit the data on ethernet connection. The more processing and vizualization can be continue on the desktop/laptop machines.
To this setup I choosed my old small linux box, the NSLU2. It has 2 USB conncetors, network connection, and, more than 2 years ago I installed on it a Debian lenny version, on a 4 Gbyte pendrive.
The running version of linux:
That time was used as a test setup for a "navigation computer" for a small boat, intelled on it a meteo software, gps and aprs daemon, a Blitzortung lightning detection client, and more. The summary of this can be read here: https://sites.google.com/site/nslu2navigation/
That time I installed on it the development packages, a "native" gcc compiler, to compile source packages directly on it.
Now I tryed to install on it the rtl-sdr software too:
The steps I used:
1. The dependency of the rtl-sdr is the libusb 1.0 version. I didnot find binary package to this armel architecture, I downloaded the source, and compiled it. This was standard procedure with the configure, make, make install commands.
2. On the osmoscom git repository, I didnot find a downloadable compressed (source) package, it can be access only through the git clone mechanism. On my NSLU2 I havenot git installed. I made the git clone on my desktop, and tar-zipped on it, and after I moved the fresh distribution package to the small box with wget.
3. The rtl-sdr packege offers two different way to configure and compile:
a. use the cmake. I tryed to find the binary for debian package to the armel architecture, it seems, it was, but now the repositories are empty for this old debian packages.
b. use the autotool. It run on my NSLU2, I choosed it. It is important to use the -i option, because without it send only errors connected to some m4 macro incompatibilities. I used this command, proposed here: http://sdr.osmocom.org/trac/wiki/rtl-sdr
after this you can use the standard method to configure, make and make install (if you would like).
4. to run the tcp version, I use this command:
The -a parameter is the IP address of this NSLU2 on my local LAN, I use the default port, which is 1234.
I used the 433.92 MHz ISM band for test, because there is nearby outside, a wireless temperature sensor, it sends a short strong signal at every seconds, usefull for test. Finally I choosed 400 ksample for digitization speed. I used the small GP antenna, found in the package of the dvb-t dongle. I dont apply the rtl_tcp file dump feature.
5. When started the rtp_tcp program, it recognized the dvb-t dongle, and start to listen to the default port for a client connection. It send this mesages on an ssh terminal:
6. On the desktop machine I made a simple gnuradio block to make connection to this small server, and receive this TCP stream.
It contains only a TCP source block, and a WX Waterfall/scope or FFT block to receive/visulaise the data stream.
7. If I start the desktop client machine this gnuradio block, on the server you can see this messages:
You can see on this messages, sometimes the server drop the connection, and restart to listening mode.
Practically you need a permanent ssh terminal to monitoring the state of the client.
Dont wait to much miracles from such a small setup, but its working:
On a small embedded linux box you can compile and run an easy way the rtl-sdr software, specially the tcp version of it, and you can use this setup as a remote sdr receiver and TCP server. Ofcourse, on your embedded box you need at least min one USB connector to connect the rtl-sdr comaptible dvt-t dongle.
Not all the tryed gnuradio sink blocks were working at the same way. Sometimes the server dropped the connection to the client.
It seems, it need more works around this setup to get a stable version of it.
On the picture you can see my first, temporaly setup of the embedded rtl-sdr server, running on NSLU2 box.
You can see on the NSLU2 box the connections:
Top white cable is the ethernet LAN cabel. The small black box is the pendrive, holding the OP system.
The next small box is the dvb-t dongle, connected to a tv cabel to the Turstain antenne, working on 430 MHz.
The bottom black cabel is the power connection.
Here is the gnuradio block to test the TCP connection:
Mon Apr 30 10:03:50 CEST 2012
hg5apz (at) gmail
My first notes about this topics are here, mainly in hungarian:
Jegyzetek az rtl-sdr-el valo ismerkedesem tapasztalatairol
Wed May 2 11:50:08 CEST 2012
Following the propose of the Admin on the rtlsdr.com site,
( http://www.rtlsdr.com/, used this nice illustration,
I reconfigured my basic setup, with more Tux support: this is a "near-movable" version, with wifi connection.
I said, "near-movable", because in this moment I didnot deal with the batteries powered solutions for the used small devices, but the connection to the embedded rtlsdr receiver was realized on wireless connection, used an old trick, how can bridgeing two parts of a wired LAN segments into one...
Originally I used this bridgeing to built "wireless cluster", if you search on this idea, you can find this, now never accessible server/link: http://184.108.40.206/wmlc/english.html. This was my server, and this was my web page, I have a local copy of it, I put here two pictures from this publication, clarifying, how I realized the wireless connection of a distributed, virtual machine. It seems, now the problem is similar... Ofcourse the "real" solution would be to build the rtl-sdr utils into an openWrt, and use only one box to serve the "remote sdr receiver", based on dvb-t dongle.
The remote connection:
My NSLU2 has only 2 USB connectors (maybe can extend it?) and I used one for the system software, connected on a usb pendrive. I use the second usb connector to connect the dbv-t dongle for the sdr receiver. Maybe can use another wifi-dongle to build wireless connection to this box, but now I doesnot try it: The small embedded box has its limitation with memory and the cpu power, to serve the high speed data transmission, maybe not the best idea to put top of this to serve the local wireless connection.
Here is, where come up the old idea, to bridgeing the two segments of a local lan into one with two wireless AP.
I use two Micronet SP918BK modells:
This small, cheap AP-s have the so called AP Bridge Point-to-Point Mode. This mean, based on this configurations, the two AP-s accept data transmission from the pearing device, based on the mutually used/configured MAC addresses.
This two pictures quoted from my old web page:
1. Setup and testing the minimal "segments" of this lan.
2. The configurations details used two cheap Micronet AP-s for this bridgeing.
The basic check of this "extension", it you can access the NSLU2 from a machine, sitting on the directly connected wires segment of the LAN.
In my example:
the router,s IP address: 192.168.1.1
the test (desktop machine) 192.168.1.110
the A participants AP of the bridge: 192.168.1.101
the "remote", B participants AP of the bridge: 192.168.1.100
the NSLU2 box, with rtl-sdr server: participants 192.168.1.77
(in my actual configuration the client is another desktop, running on it ubuntu, its name is ubu10, IP address is 192.168.1.114
The first test to access the remote rtl-sdr server from the first desktop machine:
Ok, its working, but it put some small more delay into the connection, comparing to the direct wired access...
In the next stepps I used the previous commands, to start the rtl-sdr server with the tcp version of the utils:
and I used on ubuntu the same gnuradio blocks, to test the connections, and the receive conditions at the remote dvt-t dongle.
On the picture you can see the two small boxes, working together to serve the remote dvb-t dongle:
One is the Micronet AP, it has its own 2.4 GHz antenna, and connected to the NSLU2 with a small piece of TP network cabel, (with the two black ends at the connectors). This small cabel represents the "remote wired segment" of my LAN. The NSLU2 carries the dvb-t dongle, it has its own antenna too, at the top of a small piece of antenna "boom".
About the performace:
In this moment I dont able to say too much about this: the original, wired setup produced unwaited interrupts in the data transfers, sometimes it dropped the connection. Maybe you can improve this situation, for example to use the Trottle block from the gnuradio block sets...
The wireless segment in the local lan causes another unshure situations, depending of the 2.4 GHz propagations on the local conditions.
Another issues the interferences between the two radio systems: the wireless AP transmit on relative high power, near the sensitive wideband receiver, representing the tuner in the dvb-t dongle.
Here is a short part from the network monitoring between the rtl-sdr server and the gnuradio client, running on desktop: It can be help to calculate the possible transmit speed.
Here is the description of this small modification:
Steve said, it need to connect a long wire to the 1 or 2 pin of the rtl2832 chip, and can use the modified rtl-sdr tool to tune below 30 MHz.
In my first version of the parctical modification used a 2 pin connector. The first pin I soldered on the back side of the PCB, to the GND point of the covers of USB connector. The second pin is on the top side, and I conected it to the 1.-th pin of the rtl2832, when it connected to the smd capacitor.
After a little modification you can close the original plastic cover again:
Wed Jun 6 10:15:14 CEST 2012
This is my first test on raspberrypi with the runing osmocom rtl-sdr utils, specially the rtl_tcp server.
The command, starting the server:
It found the connected rtl-sdr dongle, and start to listening:
The client runing on the same lan, on the ubuntu, the gnuradio 3.5 version, with a simple receiver block, consistst of a tcp receiver module and a WX GUI Waterfall Sink module.
When start the receiver, the server on raspberry send this message, and start to send the data:
But shortly it hung up, with this error messages:
On the gnuradio waterfall gui we can see the data transfer, but without any received signal.
From this error messages it seems me, it need some network analysis to explore the error sources.
On the picture you an see the attached rtl-sdr dongle and the network cabel, to connect to my local network.
Near the SD card there is the usb cabel, power the rpi unit and the dongle.
Thu Jun 21 16:11:42 CEST 2012