Active Topics

 


Reply
Thread Tools
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#1
Hello there!

Who said SDR?


--------------------------- WARNING ----------------------------
Warning! Anything here could burn your phone or keep you awake for one week while playing with your phone. Do not complain.
This is NOT a "DOWNLOAD this - it works perfectly" thread
This a thread like "TRY IF YOU ARE BRAVE - MAYBE IT WORKS" ...

After this, using an sdr to receive some kind of transmission is subject to different laws in every country. Please check if you are authorized to do that.
---------------------------------------------------------------------

Here attached you can find a set of binaries to use the rtl-sdr DVB-T usb sticks based on the RTL2832 chip.
Attached you can find the rtl-sdr updated driver, gnuradio and gqrx 2.1 (+some dependecies).

Update: now rtl-sdr updated package are also available in extras-testing repo.
Gnuradio and gqrx not yet packaged due a lot of time needed to fix and package them.

All tar packages should be unpacked in /opt and, if required, linked in the standard paths.

PLEASE, don't ask about missing libs, files not found or similar problems.
First of all TRY, check if you have all the repos enabled and search for what is missing.
Check python scripts, it could be that somewhere there is still some reference to scratchbox targets..

A few packages that you could need:

apt-get install libfftw3-3 xml-core python-lxml liborc-0.4-0 python-numpy libportaudio2 libjack0 libsdl1.2 python2.5-qt4 libqt4-core libqt4-gui libqt4-svg libqt4-xml libboost-thread1.42.0 libboost-filesystem1.42.0 libboost-date-time1.42.0 libboost-program-options1.42.0 libboost-system1.42.0 libice6 libasound2 libexpat1 libwxbase2.8-0 libwxgtk2.8-0 python-wxgtk2.8 python-wxtools python-wxversion


Pay attention to the battery because this kind of devices draw away a lot of mA....and you could see your phone shutting down in a bad way because battery has reached the 0%.

Speed? Yes, it's a problem... But, let'see...

Ready to start?
- battery charged
- usb host mode with h-e-n (FULL/HIGH SPEED HOSTMODE - VBOOST ON)
- host mode adapter cable
- rtl-sdr usb dvb key
- check the key with lsusb (if not present switch off/on hostmode and retry)

Bonus:
MultimonNG a fork of multimon. It decodes the following digital transmission modes:

POCSAG512 POCSAG1200 POCSAG2400
EAS
UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3
HAPN4800
FSK9600
DTMF
ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI
EEA EIA CCIR
MORSE CW

----------------------------------------------------------------------
Examples:

To receive an UHF ham radio frequency(430.175 MHZ):
/opt/rtl-sdr/bin/rtl_fm -f 430175000 -N -r 11000 - | aplay -r 11k -f S16_LE -t raw -c 1

To receive an FM Radio(96.6 MHZ):
/opt/rtl-sdr/bin/rtl_fm -f 96600000 -W -s 200000 -r 48000 - | aplay -r 48k -f S16_LE -t raw -c 1

Update: using the rtl-sdr available in extras-testing repo, syntax has changed to:
rtl_fm -f 430175000 -M fm -r 11000 - | aplay -r 11k -f S16_LE -t raw -c 1
and
rtl_fm -f 96600000 -M wfm -s 200000 -r 48000 - | aplay -r 48k -f S16_LE -t raw -c 1

Please check rtl_fm --help:
rtl_fm, a simple narrow band FM demodulator for RTL2832 based DVB-T receivers

Use: rtl_fm -f freq [-options] [filename]
-f frequency_to_tune_to [Hz]
use multiple -f for scanning (requires squelch)
ranges supported, -f 118M:137M:25k
[-M modulation (default: fm)]
fm, wbfm, raw, am, usb, lsb
wbfm == -M fm -s 170k -o 4 -A fast -r 32k -l 0 -E deemp
raw mode outputs 2x16 bit IQ pairs
[-s sample_rate (default: 24k)]
[-d device_index (default: 0)]
[-g tuner_gain (default: automatic)]
[-l squelch_level (default: 0/off)]
[-p ppm_error (default: 0)]
[-E enable_option (default: none)]
use multiple -E to enable multiple options
edge: enable lower edge tuning
dc: enable dc blocking filter
deemp: enable de-emphasis filter
direct: enable direct sampling
offset: enable offset tuning
filename ('-' means stdout)
omitting the filename also uses stdout

Experimental options:
[-r resample_rate (default: none / same as -s)]
[-t squelch_delay (default: 10)]
+values will mute/scan, -values will exit
[-F fir_size (default: off)]
enables low-leakage downsample filter
size can be 0 or 9. 0 has bad roll off
[-A std/fast/lut choose atan math (default: std)]

Produces signed 16 bit ints, use Sox or aplay to hear them.
rtl_fm ... | play -t raw -r 24k -es -b 16 -c 1 -V1 -
| aplay -r 24k -f S16_LE -t raw -c 1
-M wbfm | play -r 32k ...
-s 22050 | multimon -t raw /dev/stdin


To record a stream:
/opt/rtl-sdr/bin/rtl_fm -f 90700000 -W -r 11000 - | lame -r -s 11000 -m m -b 64 - a.mp3

rtl_fm and multimon-ng examples:
http://kmkeen.com/rtl-demod-guide/index.html
---------------------------------------------------------------------
DOWNLOAD:

Packages based on gnuradio 3.6.5.1 with gqrx 2.1.251:
http://ge.tt/4mHP5Tr

MULTIMON-NG decoder:
http://ge.tt/6GXzeqr/v/0

Packages based on gnuradio 3.6.2:
http://ge.tt/9x1WsXq

Mirror: (thanks to Joerg_rw!)
http://maemo.cloud-7.de/maemo5/opt/rtlsdr/

Attached you can find the "rtl-sdr.rules" udev file. (thanks to szopin)
This is needed to avoid fixing the /dev/xxx permissions to allow "user" to access the device.

PS.
If you want download from shell, attached you can find the "dirty" gett_downloader.sh
---------------------------------------------------------------------
References:
Driver:
http://cgit.osmocom.org/rtl-sdr/log/

Gnuradio:
http://gnuradio.org/redmine/projects/gnuradio/wiki

Gqrx:
http://gnuradio.org/redmine/projects/gnuradio/wiki

Multimon-ng:
https://github.com/EliasOenal/multimon-ng
Attached Images
   
Attached Files
File Type: zip gett_downloader.sh.zip (533 Bytes, 850 views)
File Type: zip rtl-sdr.rules.zip (1.2 KB, 731 views)

Last edited by xes; 2014-06-16 at 21:40. Reason: Added requirements for wx python modules required by gnuradio gui.
 

The Following 42 Users Say Thank You to xes For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#2
AWESOME!
and you beat me on it :-)
This is another proof why linux "phones" not dead :-D

cheers
jOERG

ps: "mirrored" at http://maemo.cloud-7.de/maemo5/opt/rtlsdr/
PPS: make sure you got improved booston script in h-e-n: http://maemo.cloud-7.de/maemo5/usr/sbin/booston, VBUS is at the edge on this setup, with the max 200mA it can provide. Consider http://talk.maemo.org/showthread.php...203#post921203 hostmode-powered
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2013-08-30 at 14:44.
 

The Following 7 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#3
I'm also planning to buy this OTG cable:
http://www.ebay.it/itm/Micro-USB-Hos...item3a846108be

It seems a good solution to make things easy
 

The Following 6 Users Say Thank You to xes For This Useful Post:
Posts: 93 | Thanked: 172 times | Joined on Jun 2011
#4
wow,

that's fantastic.

will look into it.

how long lasts the battery?

regards
 

The Following User Says Thank You to 48GX For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#5
Well, i had no time to evaluate how long the battery could last while receiving... but for sure not many hours!
 

The Following User Says Thank You to xes For This Useful Post:
jellyroll's Avatar
Posts: 435 | Thanked: 684 times | Joined on Apr 2012 @ Netherlands 020
#6
Originally Posted by joerg_rw View Post
AWESOME!
and you beat me on it :-)
This is another proof why linux "phones" not dead :-D

cheers
jOERG

ps: "mirrored" at http://maemo.cloud-7.de/maemo5/opt/rtlsdr/
PPS: make sure you got improved booston script in h-e-n: http://maemo.cloud-7.de/maemo5/usr/sbin/booston, VBUS is at the edge on this setup, with the max 200mA it can provide. Consider http://talk.maemo.org/showthread.php...203#post921203 hostmode-powered
Linux phones are the future believe that!
 

The Following User Says Thank You to jellyroll For This Useful Post:
Posts: 1,424 | Thanked: 2,622 times | Joined on Jan 2011 @ Touring
#7
Oh $#!7!!!!
this is effing awesome!!
Do you know the pain I wnet through to get this working on Ubuntu?!!?!?
 

The Following User Says Thank You to biketool For This Useful Post:
Posts: 1,424 | Thanked: 2,622 times | Joined on Jan 2011 @ Touring
#8
I wonder how hard it would be to add on xmit side to a RTL2832. Joerg, I want this built into my Neo900!!
Redonkulous stuff like this is why mobile carriers will never mass market phones like the N900.

Last edited by biketool; 2013-09-01 at 16:14.
 

The Following 2 Users Say Thank You to biketool For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#9
Originally Posted by biketool View Post
I wonder how hard it would be to add on xmit side to a RTL2832. Joerg, I want this built into my Neo900!!
Redonkulous stuff like this is why mobile carriers will never mass market phones like the N900.
We might allow a method to add it via the planned general purpose expansion interface under back cover. Get a mugen cover to make some empty space you could fill with rtl2832 and other nice stuff.
/j
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N
 

The Following 4 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 1,424 | Thanked: 2,622 times | Joined on Jan 2011 @ Touring
#10
Originally Posted by joerg_rw View Post
Get a mugen cover to make some empty space you could fill with rtl2832 and other nice stuff.
/j
Hope it fits with my Touchstone charger and the dual SIM adapter,
seriously though that would be great use for all of the extra room in a Mugen!
It was doing OTG stuff which first forced me to go Mugen/double Scud.

Last edited by biketool; 2013-09-01 at 17:56.
 

The Following User Says Thank You to biketool For This Useful Post:
Reply

Tags
gnuradio, nokia n900, rtl-sdr


 
Forum Jump


All times are GMT. The time now is 15:24.