Upup Raring 3.9.9.2 with non-PAE 3.9.9 kernel. 13 July 2013

A home for all kinds of Puppy related projects
Message
Author
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#161 Post by pemasu »

Continued of above post. the RF tuner inside that stick is Elonics E4000.
It uses e4000.ko module...and it seems I have included it.

Software defined radio, SDR page:
http://sdr.osmocom.org/trac/wiki/rtl-sdr

Info about RTL2832U and RF tuner combo by Antti Palosaari:
RTL2832U SDR mode
One absolutely very interesting feature of that chip is so called SDR (Software-defined radio) mode. That undocumented mode is used to offer FM radio and DAB features, whilst DVB-T is demodulated traditionally by hardware. RTL2832U with a comibination of RF-tuner which supports very wide range frequencies (around 50-2000MHz) makes that device very interesting as a general poor man's SDR.
About Elonics RF tuner:
Elonics E4000 could be seen clearly center of that picture. 28.800MHz crystal is clock source for both E4000 and RTL2832U. There is four clearly visible wires, going through C11/C12/C13/C17, between tuner and demodulator. It is baseband (Zero-IF, 4 wires) I/Q signal interface which goes to the demodulator ADC.

E4000 is multi-mode direct conversion (aka Zero-IF) silicon RF-tuner. It supports wide range of different standards. Due to wide range of supported radio communication standards, it supports wide frequency range that makes it quite interesting RF tuner. Currently, I don't know any other DVB-T tuner which supports that large frequency range.

Linux driver:
name: e4000
author: Antti Palosaari <crope@iki.fi>

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#162 Post by pemasu »

# rtl_sdr
rtl_sdr, an I/Q recorder for RTL2832 based DVB-T receivers

Usage: -f frequency_to_tune_to [Hz]
[-s samplerate (default: 2048000 Hz)]
[-d device_index (default: 0)]
[-g gain (default: 0 for auto)]
[-b output_block_size (default: 16 * 16384)]
[-n number of samples to read (default: 0, infinite)]
[-S force sync output (default: async)]
filename (a '-' dumps samples to stdout)
Attachments
rtl_DEV-sdr-0.0.1.pet
(47.04 KiB) Downloaded 202 times
rtl-sdr-0.0.1.pet
(71.59 KiB) Downloaded 213 times

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#163 Post by pemasu »

Making life more easy. I found Ubuntu launchpad repo for Gnuradio. It has a lot needed stuff. And hopefully the rest you can download from PPM. Probably this Gnuradio wants tens of dependencies, libs, libboost, etc, etc.
I tried to compile gnuradio, but getting everything right, it is mission impossible with this crappy laptop. When I test compile...everything else stops, cant browse, cant do anything. And when there is error, I have to start hunt the bug. Gnuradio and gr-osmosdr compile is not the easiest one, that has been tested. I happily rely to the ready made .debs

https://launchpad.net/~roman-moravcik/+ ... /+packages

After all the downloading, my 1 Gb savefile is now red, but:
http://i.imgur.com/irSky9b.jpg

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#164 Post by pemasu »

SDR continues:

Quisk, not sure if it supports rtl2832U dongle. I couldnt get straight answer.

http://i.imgur.com/ZlCz0S8.jpg

Anyway. I found Gnuradio with RTL2832U page with pics:

http://zr6aic.blogspot.fi/2012/08/gnura ... ongle.html

Thats it. I have placed starting points for all sdr hobbyists. I dont own this dongle, so I cant test it. But initial info can be found now.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#165 Post by edoc »

Wow ... my head is spinning ... :roll:

Got home from painting at the church, grabbed some lunch, then checked email to find this flurry of activity.

I downloaded the two PET files and loaded them & tried:
"rtl_sdr -s 1443900"

No errors, just returned to the menu for rtl_sdr - not sure what it's supposed to do.

I don't know how I would test the device for TV as I don't see an app in the menu that does that.

Great to see that you got gnuRadio to run!

I have already downloaded and installed gnuradio via Puppy Package Manager but cannot get it to execute - is there something that I need to do after getting all of those files via PPM?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#166 Post by pemasu »

Edoc. VLC media player is good for TV watching. You need channels.conf file also, which has the channels info. I use w_scan commandline application for that. I think you can find several ways to create channels.conf file when you search the net for info.

http://208.109.22.214/puppy/viewtopic.p ... 66e#702081

Murga-forum has several posts how to use dvb tuner for watching, with vlc, smplayer, etc....

About Gnuradio. You can install gnuradio .deb from PPM, it craps most of the dependencies with it. There one page full of gnuradio plugins. Then install from that launchpad site the rest. osmo-sdr, gr-osmosdr, my compiled rtl-sdr or the same one from that site, uhd. I think you dont need to install again that compiled gnuradio from the site. I didnt. Gnuradio is python monster. You will need also python-gtk2 with the rest dependent python-cairo etc, also install python-nympy with dependencies. then copy from /usr/lib/libla* the libs to the /usr/lib and do the same to the /usr/lib/libblas*.

Then try in console: gnuradio-companion. And start to install the rest missing stuff. It might take couple of hours.

Gnuradio is absolute the most amazing, huge Python app, which needs a lot libs and dependencies to get the gui even starting. I admire those who have achieved to create it. But...I wanted to get the gui even once in my lifetime to start. Now I have done it. Lol.
Last edited by pemasu on Sat 03 Aug 2013, 18:36, edited 2 times in total.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#167 Post by edoc »

Do I need to do the following?

Found at: http://radioware.nd.edu/documentation/i ... tion-guide
Two Python modules are necessary and very important in GNU Radio, Numeric and Numarray, which are used in Python for numerical computation purpose. They are available at: http://sourceforge.net/projects/numpy


Download the newest version of Numarray and Numpy. Extract the tarball then you can find the setup.py file. Use the following command to install

$ python setup.py install

At this point, I guess you should be able to install gnuradio-core without losing any packages. In the folder gnuradio-core downloaded from CVS, run the following commands

$ ./bootstrap
$ ./configure --enable-maintainer-mode
$ make
$ make check
$ make install

Now you have already got the key component of GNU Radio. Note that you may not be able to pass the `make check' if you didn't install Numeric and Numarray modules.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#168 Post by pemasu »

Read my post above. I mentioned python-nympy already and also that you have to manually fix the location of those 2 dependent folder of libs. It is known bug in all debian, ubuntu distros. Puppy does not see liblapack etc and libblas libs if they are not moved, copied or symlinked to the the /usr/lib.

So...first install python-nympy with PPM with dependencies. Then fix the libs location.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#169 Post by edoc »

gnuradio-companion complains about pygtk missing.

I looked in Puppy Package Manager & it shows a bunch of files after a search but none of them are explicitly pygtk - do the results suggest that pygtk is in any of them?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#170 Post by pemasu »

Hmm Edoc. What if you read my posts first again. I am repeating myself.
Install python-gtk2 with all dependent other python-* .debs.

I am taking brake now....

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#171 Post by edoc »

Our posts passed each other ... :o

I just read what you wrote and will see what I can do ...
Then install from that launchpad site the rest. osmo-sdr, gr-osmosdr, my compiled rtl-sdr or the same one from that site, uhd. I think you dont need to install again that compiled gnuradio from the site. I didnt. Gnuradio is python monster. You will need also python-gtk2 with the rest dependent python-cairo etc, also install python-nympy with dependencies. then copy from /usr/lib/libla* the libs to the /usr/lib and do the same to the /usr/lib/libblas*.
python-nympy confused me until I realized there was a typo and it was python-numpy I was supposed to be getting! :oops:

This folder doesn't exist /usr/lib/libla*

I searched via PPM for libla and grabbed what was checked (libpack).

Then I searched for libla and found it in /usr/lib/lapack
Last edited by edoc on Sat 03 Aug 2013, 19:24, edited 1 time in total.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#172 Post by pemasu »

Edoc. I think you should check first that the rtl-sdr sees your RF tuner.
In console: rtl_test -t

....and check if the tuner is found.

If not: modprobe -r dvb_usb_rtl28xxu
....which removes the dvb usb bridge driver and try again the above command.

About missing stuff. Just launch in while gnuradio-companion and add what is missing.

More reading:
http://superkuh.com/rtlsdr.html

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#173 Post by edoc »

It finds the stick, but ...

"... kernel driver active or device claimed by second instance of librtlsdr."

"Detach or blacklist dvb_usb_rt128xxu or enable automatic detaching at compile time."

WDYT?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#174 Post by edoc »

I tried blacklisting that module & rebooted.

That worked - it ran the benchmarking! :lol:
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#175 Post by pemasu »

Yeah. Those dvb tuner - RF tuner combos dont have usb-modeswitch functionality. You can use only one of the features. Dvb-tuner or RF tuner property....it seems.

Okay....That is about all I now know about that RF tuner thing. I really dont quite follow what people do with these things.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#176 Post by edoc »

w_scan -fc -c FI -M > /root/channels.conf


Doesn't work & can't find w_scan in PPM.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#177 Post by edoc »

Dvbscan isn't in Raring?

Not found when I look in PPM.
I have for VLC channels info file created as vlc.xspf with w_scan

Dvbscan should be ok also.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#178 Post by pemasu »

Edoc. use google: w_scan deb

http://packages.debian.org/unstable/main/w-scan

And, your scanning cant work. You would scan finnish cable tv channels with those parameters.

w_scan --help
w_scan: invalid option -- '-'

usage: w_scan [options...]
-f type frontend type
What programs do you want to search for?
a = atsc (vsb/qam)
c = cable
s = sat
t = terrestrian [default]
-A N specify ATSC type
1 = Terrestrial [default]
2 = Cable
3 = both, Terrestrial and Cable
-c choose your country here:
DE, GB, US, AU, ..
? for list

-s choose your satellite here:
S19E2, S13E0, S15W0, ..
? for list
---output switches---
-G generate channels.conf for dvbsrc plugin
-k generate channels.dvb for kaffeine
-L generate VLC xspf playlist (experimental)
-M mplayer output instead of vdr channels.conf
-X tzap/czap/xine output instead of vdr channels.conf
-x generate initial tuning data for (dvb-)scan
-H view extended help (experts only)

I provide only the approximate information. You have to dig out what kind parameters USA broadcasts need. I cant know.

http://linuxtv.org/wiki/index.php/W_scan

Scanning ATSC VSB (United States, Over-the-Air)

Someting like: w_scan -fa -A1 -c US -L > /root/channels.conf

Use google, forum, someone from USA or from your state surely has posted the correct parameters.

And...You need to enable the dvb usb bridge driver and reboot. You cant use dvb-tuner before you enable it again.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#179 Post by pemasu »

Or....
The corrected terminal command for North American users:
Code:

w_scan -ft -c US -L > /root/vlc.xspf

dvbscan is in package dvb-tools ...or dvb-apps. Not quite sure.

My old post from year 2010 about my first test to use it:

http://murga-linux.com/puppy/viewtopic. ... 966#453966

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#180 Post by edoc »

I see the typo, it is w-scan rather than w_scan.

Downloaded & installed.

I tried "w_scan -ft -c US -L > /root/vlc.xspf"
ERROR: No Usable TERRCABLE_ATSC Card Found
Check wether dvd driver is loaded
and verify that no dvd application (i.e. vdr) is running.
BTW: PPM shows dvb-tools which looks like a handy package of tools but when it downloads & installs it contains only doc files - none of the tools.

Is there a proper way to report this so that it is fixed - or is that set of tools too old and has been discarded?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply