E4000 and Gnuradio installation problems.

1,783 views
Skip to first unread message

Benoit

unread,
Jun 3, 2012, 5:46:25 AM6/3/12
to ultra-c...@googlegroups.com
Hello

I read very often the message in this group but now it's my turn. ;)

I'm already my E4000 dongle on windows with HDSR works great. But I would like to use is on my laptop who is under Debian.
I used 2 sites to try to install E4000 and Gnuradio

First i've try to do all was mentionned on http://sdr.osmocom.org/trac/wiki/rtl-sdr. When i do as mentionned "rtl_sdr /tmp/capture.bin -s 1.8e6 -f 392e6 ".
I get :
n3b@laptop:~$ sudo rtl_sdr /tmp/capture.bin -s 1.8e6 -f 392e6
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Elonics E4000 tuner
Tuned to 392000000 Hz.
Reading samples in async mode...
Short write, samples lost, exiting!

Library error 0, exiting...

o_O

When I lauch gnuradio-companion and i try to load a flowgraph. I get a huge amount of errors (posted on pastebin http://pastebin.com/dZedA5i1 ).

After that I thought i didn't installed well components. So i went on the other website (http://uperkuh.com/gnuradio.html) and I use the script wrote by patchvonbraun.
wget http://www.sbrac.org/files/build-gnuradio
chmod 755 build-gnuradio
./build-gnuradio --verbose
After I try again to lauch gnucompanion but I still have some errors. I don't remember how many things I did to try to setup the dongle and the software, but too much. Could you help me?

A problem with python for the flowgraphs?

When i open multimode.grc (https://www.cgran.org/browser/projects/multimode/trunk). I get messages (http://pastebin.com/UCfsUnGf) but the flowgraph is open.

Other infos:
- Lenovo X61
- Dongle E4000 DVB-T
- Linux version 3.2.0-2-686-pae (Debian 3.2.19-1) (debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-7) )
- GNU Radio Companion 3.6.1git-103-gb7e2c8ba
- rtl_test result
n3b@laptop:~$ sudo rtl_test -t
Found 1 device(s):
  0:  ezcap USB 2.0 DVB-T/DAB/FM dongle

Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Elonics E4000 tuner
Supported gain values (18): -1.0 1.5 4.0 6.5 9.0 11.5 14.0 16.5 19.0 21.5 24.0 29.0 34.0 42.0 43.0 45.0 47.0 49.0
Benchmarking E4000 PLL...
[E4K] PLL not locked for 51000000 Hz!
[E4K] PLL not locked for 2195000000 Hz!
[E4K] PLL not locked for 1098000000 Hz!
[E4K] PLL not locked for 1238000000 Hz!
E4K range: 52 to 2194 MHz
E4K L-band gap: 1098 to 1238 MHz





Benoit

unread,
Jun 3, 2012, 11:51:32 AM6/3/12
to ultra-c...@googlegroups.com
I've tried to reinstall Gnuradio with the script. And get this.

[  3%] Generating doxygen xml for pmt_swig_doc docs
warning: Tag `SHOW_DIRECTORIES' at line 477 of file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc_swig_docs/Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `HTML_ALIGN_MEMBERS' at line 803 of file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc_swig_docs/Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `USE_INLINE_TREES' at line 956 of file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc_swig_docs/Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
/home/n3b/Téléchargements/gnuradio/gnuradio/gruel/src/include/gruel/pmt.h:380: warning: found </pre> tag without matching <pre>
[  3%] Generating pmt_swig_doc.i
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing error with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i. giving up.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing error with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i. giving up.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing error with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i. giving up.
XML parsing problem with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i, retrying.
XML parsing error with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i. giving up.
XML parsing error with file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc.i. giving up.
Traceback (most recent call last):
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/swig_doc.py", line 367, in <module>
    make_swig_interface_file(di, swigdocfilename, custom_output=custom_output, tries=tries)
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/swig_doc.py", line 269, in make_swig_interface_file
    blocks = di.in_category(Block)
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/doxyxml/base.py", line 145, in in_category
    if cat.includes(mem)]
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/swig_doc.py", line 54, in includes
    if item.error():
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/doxyxml/base.py", line 211, in error
    self.check_parsed()
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/doxyxml/base.py", line 203, in check_parsed
    self._parse()
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/doxyxml/doxyindex.py", line 187, in _parse
    self.retrieve_data()
  File "/home/n3b/Téléchargements/gnuradio/gnuradio/docs/doxygen/doxyxml/base.py", line 193, in retrieve_data
    filename = os.path.join(self._xml_path, self.refid + '.xml')
  File "/usr/lib/python2.7/posixpath.py", line 71, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)
make[2]: *** [gruel/src/swig/pmt_swig_doc.i] Erreur 1
make[1]: *** [gruel/src/swig/CMakeFiles/_pmt_swig.dir/all] Erreur 2
make: *** [all] Erreur 2
make failed
Exiting Gnu Radio build/install

Heath Hunnicutt

unread,
Jun 3, 2012, 12:51:14 PM6/3/12
to ultra-c...@googlegroups.com
The output from rtl_test looks normal.  Therefore, your e4000 chip (and the dongle) are working.

My dongle usually works, but I sometimes get the same error message.  This may happen if I bump the dongle.  Is there a way to plug your dongle into a cable, to ensure a firm connection?

Otherwise, the problem may be related to USB somehow.  Perhaps you are using a USB hub?  How have you connected the dongle?

Are there other USB devices on the same bus?

Benoit

unread,
Jun 3, 2012, 4:58:05 PM6/3/12
to ultra-c...@googlegroups.com
Thanks for your answer.

Usb dongle are pluged directly to the computer, no hub at all. I should try an other port.

If someone have an answer for my bugs (logs posted below).

;)

Heath Hunnicutt

unread,
Jun 3, 2012, 11:24:25 PM6/3/12
to ultra-c...@googlegroups.com
I imagine lots of people can help you with your build errors.  ;)

As long as you experience "short read" using the widely used rtl_sdr, various programs won't work well for you.  Be sure to solve that error message before you try to use the device.


Random Walk

unread,
Jun 4, 2012, 11:11:58 PM6/4/12
to ultra-c...@googlegroups.com

Might it be possible that instead of loading a flowgraph file, you are trying to load an HTML page that has a flowgraph in the HTML for the page, with all the (HTML code necessary to format it.)

If that's the case, you want to extract the XML and ONLY load that. HTML may look a bit like XML but they are two separate beasts.. completely.

If you can go to the web site you downloaded the flowgraph and try to get it in its raw XML form, that would be best. For example, on github, there is a selection at the bottom "download in original form" or something like that.

You'll probably find that when you do that, the examples will work, but if you get other errors, at least they will be real, challenging errors and not artifacts of downloading the container for the flowgraph and not the flowgraph itself. If there is any issue, you can use a simple text editor like MS notepad or pico or even the Linux cat command to see what's in that file.. Either way, it should be a markup language, which is just text..

To illustrate, this is HTML.. the language web pages are written in - for your browser.. this is NOT what you want to load into GRC:

<!DOCTYPE html>
<html>
 
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#">
   
<meta charset='utf-8'>
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
       
<title>gnuradio-grc-examples/receiver/fm_rx.grc at master · csete/gnuradio-grc-examples · GitHub</title>
   
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub" />
   
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub" />
   
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />


This is what you want:


<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
 
<timestamp>Wed May 23 14:43:03 2012</timestamp>
 
<block>
   
<key>options</key>
   
<param>
     
<key>id</key>
     
<value>fm_rx</value>
   
</param>
   
<param>
     
<key>_enabled</key>
     
<value>True</value>
   
</param>
   
<param>
     
<key>title</key>
     
<value>FM Receiver</value>
   
</param>
   
<param>
     
<key>author</key>
     
<value>OZ9AEC</value>
   
</param>
   
<param>
     
<key>description</key>
     
<value>Simple FM receiver prototype</value>
   
</param>....



And so on...

Benoit Mio

unread,
Jun 5, 2012, 4:07:57 AM6/5/12
to ultra-c...@googlegroups.com
Oh great, thanks a lot.
 
I will check my *.grc with your advice.
 
Can someone tell me if my approach it's correct ?
  • Plug the dongle
  • Run sudo rtl_sdr /tmp/capture.bin -s 1.8e6 -f 392e6
  • Start Gnuradio-companion with a good flowgraph (without errors)
  • Build/start it?
Am I right?
 
Thanks a lot.
 
Benoit

2012/6/5 Random Walk <trilli...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "Ultra Cheap SDR" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ultra-cheap-sdr/-/di8rCtaG4kAJ.

To post to this group, send email to ultra-c...@googlegroups.com.
To unsubscribe from this group, send email to ultra-cheap-s...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ultra-cheap-sdr?hl=en.

Benoit

unread,
Jun 5, 2012, 5:09:33 AM6/5/12
to ultra-c...@googlegroups.com
Hello
 
And for my other problems with
 

When I try to use the script wrote by patchvonbraun (http://www.sbrac.org/files/build-gnuradio)

  • Everything is good except (copy on pastebin http://pastebin.com/a3tkppFu) :
  • [ 3%] Generating doxygen xml for pmt_swig_doc docs warning: Tag `SHOW_DIRECTORIES' at line 477 of file /home/n3b/Téléchargements/gnuradio/gnuradio/build/gruel/src/swig/pmt_swig_doc_swig_docs/Doxyfile has become obsolete.
     
    Someone post and answer on reddit.
     

    th0ma5w

    So I readily admit that I don't know everything, but looking at the error, it seems that parts of your Python installation are having problems with Unicode files. Unicode, unfortunately, still has a bit of corner cases and such... are you by chance a multilingual person? If you can find a way to cludge it to get it pas this error (try changing /usr/lib/python2.7/posixpath.py to not have any Unicode characters in it maybe) this may well pass and be fine... this appears to be only occurring in a part that is generating documentation that you may well never need, or can find elsewhere, or focus on working at a different time.

    http://www.reddit.com/r/RTLSDR/comments/uiph9/e4000_debian_gnuradio_doesnt_work/

    2012/6/5 Random Walk <trilli...@gmail.com>

    To post to this group, send email to ultra-cheap-sdr@googlegroups.com.
    To unsubscribe from this group, send email to ultra-cheap-sdr+unsubscribe@googlegroups.com.

    Adam Nielsen

    unread,
    Jun 5, 2012, 9:38:14 AM6/5/12
    to ultra-c...@googlegroups.com
    > Can someone tell me if my approach it's correct ?
    >
    > * Plug the dongle
    > * Run sudo rtl_sdr /tmp/capture.bin -s 1.8e6 -f 392e6

    You only need to do this if you want to store capture data in a file. If you
    want to use GNURadio to listen to live radio, you don't need to run rtl_sdr.

    > * Start Gnuradio-companion with a good flowgraph (without errors)

    Here is a good example that got me started:

    http://ebrombaugh.studionebula.com/radio/gnuradio/index.html

    > * Build/start it?

    If you have installed everything you need (GNU Radio, gr-baz, etc.) then the
    above flow graph will work fine.

    Cheers,
    Adam.

    Random Walk

    unread,
    Jun 5, 2012, 11:52:38 AM6/5/12
    to ultra-c...@googlegroups.com
    The flow graphs are just for designing an application. Once you have it working you can run the python file it generates (and not run GRC at all.)

    Does that make sense? The flowgraphs are the design phase, the python apps are the run phase.


    On Sunday, June 3, 2012 5:46:25 AM UTC-4, Benoit wrote:
    Hello

    I read very often the message in this group but now it's my turn. ;)

    I'm already my E4000 dongle on windows with HDSR works great. But I would like to use is on my laptop who is under Debian.
    ...

    Benoit Mio

    unread,
    Jun 5, 2012, 4:23:00 PM6/5/12
    to ultra-c...@googlegroups.com
    Hello Random

    The python as to be in the folder of the grc to get loaded?

    I've edited the ./build-gnuradio script and removed all doxygen mention to don't install this package. It's doc file so I don't need it I think.
    The ./build-gnuradio runt well... yeah

    Done building/installing rtl-sdr/gr-osmosdr
    Done function rtl_build at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Starting function extras at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Done function extras at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Starting function mod_groups at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Group 'usrp' already in /etc/group
    ********************************************************************************
    This script has just modified /etc/group to place your userid '('$USER')' into group 'usrp'
    In order for this change to take effect, you will need to log-out and log back
    in again.  You will not be able to access your USRP1 device until you do this.

    If you wish to allow others on your system to use the USRP1 device, you will need to use:

      sudo usermod -a -G usrp userid
     
    For each userid you wish to allow access to the usrp

    ********************************************************************************

    Further
    Done function mod_groups at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Starting function mod_udev at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    cp: impossible de créer le fichier standard « /etc/udev/rules.d/10-usrp.rules »: Permission non accordée
    chown: impossible d'accéder à « /etc/udev/rules.d/10-usrp.rules »: Aucun fichier ou dossier de ce type
    chgrp: impossible d'accéder à « /etc/udev/rules.d/10-usrp.rules »: Aucun fichier ou dossier de ce type
    Done function mod_udev at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Starting function mod_sysctl at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Required updates to /etc/sysctl.conf already in place
    usrp group already has real-time scheduling privilege
    Done function mod_sysctl at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Starting function pythonpath at: mardi 5 juin 2012, 21:16:58 (UTC+0200)


    ************************************************************
    You should probably set your PYTHONPATH to:
     
         /usr/local/lib/python2.7/dist-packages
     
    Using:
     
    export PYTHONPATH=/usr/local/lib/python2.7/dist-packages
     
    in your .bashrc or equivalent file prior to attempting to run
    any Gnu Radio applications or Gnu Radio Companion.
    *************************************************************
    Done function pythonpath at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    Done all functions at: mardi 5 juin 2012, 21:16:58 (UTC+0200)
    All Done
    Except this 2 lines apparently
    chown: impossible d'accéder à « /etc/udev/rules.d/10-usrp.rules »: Aucun fichier ou dossier de ce type
    chgrp: impossible d'accéder à « /etc/udev/rules.d/10-usrp.rules »: Aucun fichier ou dossier de ce type

    translation
    chown: unable to access to « /etc/udev/rules.d/10-usrp.rules »: No file of folder of this type
    chgrp: unable to access to « /etc/udev/rules.d/10-usrp.rules »: No file of folder of this type

    After that i did
    wget http://ebrombaugh.studionebula.com/radio/gnuradio/wbfm_mono.grc

    And open it on  gnuradio-companion and I open it. I get this message.
    Loading: "/home/n3b/Téléchargements/wbfm_mono.grc"
    >>> Error: Block key "rtl2832_source" not found in Platform - grc(GNU Radio Companion)
    None
    >>> Error: Connection between rtl2832_source_0(0) and gr_fir_filter_xxx_0(0) could not be made.
        source block id "rtl2832_source_0" not in block ids

    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py", line 198, in import_data
        raise LookupError('source block id "%s" not in block ids'%source_block_id)
    LookupError: source block id "rtl2832_source_0" not in block ids
    >>> Done

    Showing: "/home/n3b/Téléchargements/wbfm_mono.grc"

    Loading: "/home/n3b/Téléchargements/wfm_rx.grc"
    Error: Opening and ending tag mismatch: link line 32 and head, line 44, column 10
    >>> Failure
    Still missing block rtl2832. :/


    Thank you so much for your help.

    Benoit
    --
    You received this message because you are subscribed to the Google Groups "Ultra Cheap SDR" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/ultra-cheap-sdr/-/GX9bZAswWJoJ.
    To post to this group, send email to ultra-c...@googlegroups.com.
    To unsubscribe from this group, send email to ultra-cheap-s...@googlegroups.com.

    Benoit

    unread,
    Jun 7, 2012, 5:58:15 AM6/7/12
    to ultra-c...@googlegroups.com
    I've dream about a working gnuradio with a beautifull waterfall.
     
    :)

    Le dimanche 3 juin 2012 11:46:25 UTC+2, Benoit a écrit :

    Benoit Mio

    unread,
    Jun 7, 2012, 6:00:20 AM6/7/12
    to ultra-c...@googlegroups.com
    I dreamed about a working gnuradio with a beautifull waterfall.

    Sorry

     
    2012/6/7 Benoit <benoi...@googlemail.com>

    --
    You received this message because you are subscribed to the Google Groups "Ultra Cheap SDR" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/ultra-cheap-sdr/-/dlnmz2IPmB4J.

    Benoit

    unread,
    Jun 9, 2012, 5:41:14 PM6/9/12
    to ultra-c...@googlegroups.com
    I dreamed enough

    It's work now !!

    I simply follow
    RTL-SDR @ BackTrack 5 R2 www.hack4fun.eu/2012/05/rtl-sdr-backtrack-5-r2/

    I think that GR-baz was missing, I did again the installation of RTL-SDR and GR-baz.

    Awesome. Thanks for your help. Hope my feedbacks will help people.

    Le jeudi 7 juin 2012 12:00:20 UTC+2, Benoit Mio a écrit :
    I dreamed about a working gnuradio with a beautifull waterfall.

    Sorry

     
    2012/6/7 Benoit <benoit.miooglemail.com>

    To post to this group, send email to ultra-cheap-sdr@googlegroups.com.
    To unsubscribe from this group, send email to ultra-cheap-sdr+unsubscribe@googlegroups.com.

    Jasper Ragworth

    unread,
    Jun 10, 2012, 7:29:19 AM6/10/12
    to ultra-c...@googlegroups.com
    gqrx is a lot easier to use than GRC if all you want to do is listen and not design a radio, although you need gnuradio installed before you can build gqrx, so probably wouldn't have helped in this case.

    Benoît Mio

    unread,
    Jun 10, 2012, 7:43:52 AM6/10/12
    to ultra-c...@googlegroups.com
    Thanks

    I will test it.

    Envoyé de mon téléphone

    Le 10 juin 2012 à 13:29, Jasper Ragworth <muffbagmuf...@gmail.com> a écrit :

    gqrx is a lot easier to use than GRC if all you want to do is listen and not design a radio, although you need gnuradio installed before you can build gqrx, so probably wouldn't have helped in this case.

    --
    You received this message because you are subscribed to the Google Groups "Ultra Cheap SDR" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/ultra-cheap-sdr/-/bR7U1ZPapN8J.
    To post to this group, send email to ultra-c...@googlegroups.com.
    To unsubscribe from this group, send email to ultra-cheap-s...@googlegroups.com.

    Cipyz

    unread,
    Feb 4, 2013, 6:21:57 PM2/4/13
    to ultra-c...@googlegroups.com
    please help

    after execute it appears!!

    Executing: "/tmp/top_block.py"

    Error: failed to enable realtime scheduling.
    Using Volk machine: sse4_2_32

    Traceback (most recent call last):
      File "/tmp/top_block.py", line 478, in <module>
        tb = top_block()
      File "/tmp/top_block.py", line 268, in __init__
        self.rtl2832_source_0 = baz.rtl_source_c(defer_creation=True, output_size=gr.sizeof_gr_complex)
    AttributeError: 'module' object has no attribute 'rtl_source_c'
    Reply all
    Reply to author
    Forward
    0 new messages