Digital TV Tuner User Manual

W
Shared by: waterwolltoremilion
Categories
Tags
-
Stats
views:
18
posted:
6/20/2012
language:
English
pages:
11
Document Sample
scope of work template
							Digital TV Tuner
  User Manual




                    Authors:
                Thanh San Nguyen
                  Korey Sewell




                      Advisors:
                 Prof. Tony Givargis
                   Prof. Nikil Dutt
           Department of Computer Science
  Center for Embedded Computer Science, UC Irvine
Digital TV Tuner User Manual - 2




Introduction:

      This manual will provide step-by-step instructions for properly installing all
equipment and software for the Digital TV Tuner project. The manual will also cover
some configuration issues with QT-devel, which is installed properly in Redhat 9.0 but
GNU radio version 0.8 cannot find it during the installation process.




Overview:
       The equipment/software page will give details on the hardware/software
requirements. Hardware installations page will give details on how to install all required
equipments. The procedures page will give a step-by-step instruction to install all
software and hardware. It will also give an overview of the commands. All these
commands are reference off the GNU RADIO website http://www.gnu.org/software/
gnuradio/


If there are any questions, comments, or suggestions please send an email to any one of
the following addresses:
Thanh San Nguyen                             Prof. Tony Givargis
snguyen@cs.ucr.edu                           givargis@ics.uci.edu

Korey Sewell                                 Prof. Nikil Dutt
ksewell@cs.ucr.edu                           dutt@ics.uci.edu

Or visit our website for more details
http://www.cs.ucr.edu/~snguyen Or http://www.cs.ucr.edu/~ksewell




                                            2
Digital TV Tuner User Manual - 3




Equipment:
     - Measurement Computing PCI-DAS4020/12 Analog/Digital card




        -   Microtune 4736 US version with a 36MHz IF output




        -   NEC PC2798GR bipolar analog integrated circuit and corresponding
            eval-board




        -   Antenna for TV tuner
               o Radio Shack catalog# 15-2151 ($35) model: VU-75 XR and cable
                  (this is a boom antenna, an indoor antenna would work as long as it
                  could receive a clear signal without any obstruction in my opinion)
        -   Antenna for FM radio
               o This is not important any ordinary dipole FM antenna will be suffice
        -   Computer System
               o This project is done with a Pentium III 1GHz processor, 256MB RAM
                  and 20GIG hard-drive (a faster hard-drive is recommended for TV
                  tuner project)
        -   5V power supply with Banana Jack/Binding Post Connections.




                                          3
Digital TV Tuner User Manual - 4




        -   Appropriate Wires and Connecting Parts (Pictures of the following components
            can be found at the website)
                o Basic Electronic Wires
                o Appropriate SMA & BNC adaptors (purchased from Action Electronics: 714-
                    547-5169)
                            SMA Male to BNC Female adaptor (Pan Pacific Part #RFA-
                             8382)
                             SMA Male to BNC Male adaptor (Pan Pacific Part #RFA-
                             8384)
                            SMA Male to SMA Female right angle adaptor (Pan Pacific
                             Part #RFA-2599)
                            Male BNC to Male BNC RG59 Cable (3 - 3 feet long)

Software:
Most of the software will be provided in the CD. Look for the .tar files.
       - Red Hat 9.0
       - GNU core file could be download here
           (http://www.gnu.org/software/gnuradio/)
       - driver for PCI-DAS4020/12 (http://www.gnu.org/software/gnuradio/)
       - Fourier Transform Sofware version 2.1.5 the 3.0.x is not compatible!
               o This could be download here (http://www.fftw.org)
       - optional QT software from trolltech
       - xine from (http://xinehq.de/)
               o This software has NOT been installed on the system yet!

Hardware Installation:

        1. Install PCI-DAS4020/12 card
              o First, solder the two pads SG4 together to create input of 50 ohms on
                   channel 3
                       any solder tools will do the job




                         before                     after



                                             4
Digital TV Tuner User Manual - 5


                o install the card on any PCI slot (last slot is preferred)

        2. Connect Hardware Components
                                                    from
                                                    antenna to
                                                    tuner
                                                                              control
                                                                              lines
                    vcc,gnd,etc..
                                                      Microtune Eval-Board
           NEC Eval-Board



 vcc2
                                                                              Parallel
                                                                              Port
                     IF OUT to Channel 3
                     of A/D card

                   IF output to NEC Board to IF AMP IN on NEC board

        Figure 1. The connections between the NEC and Microtune evaluation boards


    Figure 1 showed the connections required between the Microtune tuner and NEC
                 evaluation-board. Follow the connection steps below.

    1. Connect the SMA Male to SMA Female right angle adaptor to the IF OUT on the
       NEC board
    2. Connect SMA Male to BNC Female adaptor to the SMA Male to SMA Female
       right angle adaptor connected in the last step
    3. Connect SMA Male to BNC Female adaptor to the IF AMP IN on the NEC board.
    4. Use the cable and connect the IF OUT on the MICROTUNE board to the IF AMP
       IN on the NEC board.
    5. Use another cable and connect the IF OUT on the NEC BOARD to CHANNEL 3
       of the A/D card installed on the PC.
    6. Connect the output from the antenna to the Tuner (antenna needs to be purchased)
    7. Connect all VCCs and GNDs wires to their appropriate destinations on the power
       supply is here (this will be up to the future researcher)




                                              5
Digital TV Tuner User Manual - 6




It should look something like this without the power supply:




                                            6
Digital TV Tuner User Manual - 7




Here are some more pictures of the setup to show each part in more details:




Software Installation:
      All of these installations are done under “root”. Normal user could also install
      certain package of software; however, you must change the permission!

        To unzip or untar files you “gunzip file_name” and “tar xf file_name” command
        1. Install Red Hat 9.0
               o choose “complete installation” or partial installation with the kernel
                   included



                                            7
Digital TV Tuner User Manual - 8


              o follow direction on Red Hat installation guide
              o recommended 10Gig of space
        2. Install the Measurement Computing PCI-DAS4020/12 card
              o download the driver from website
              o read the README file for installation instruction or these instructions
                   ( recommend installing under root )
                        # ./configure (./ is not necessary if the path is modified )
                        # make
                        # make install
                        # make check ( optional )
                        # depmod
                        # make devs
                       For normal user
                              $ ./configure (./ is not necessary if the path is modified )
                              $ make
                              $ make check
                              $ make install
              o then add the following line to your /etc/modules.conf file
                        alias char-major-127 mc4020

        3. Install Discrete Fourier transform (DFT)
              o download software from website
              o read the INSTALL file for directions or simply use these commands
                       # ./configure --enable-float
                              you might need to type sh ./configure if you are using
                                 ‘csh’ on and older version of System V
                              this will install the single precision, do not install the
                                 double precision or both otherwise you will have to do
                                 this again!
                       # make
                              this will compile the package for you
                       # make check
                              make check will check for error in the installation
                                 process ensuring a smooth installation of DFT. this is
                                 an optional feature!
                       # make install
                              installing the program, documentations, and any data
                                 files
              o after installation is complete type
                       # make clean
                              this is clear away all the binary files, objects and other
                                 files created during the configure and make process




                                             8
Digital TV Tuner User Manual - 9




        4. Installing QT

                o if you are running on Red Hat 9.0 you do not need to re-install QT but
                  you need to create 2 files .profile and .login in your local directory for
                  GNU RADIO to recognize qt when it’s configuring

                In .profile (if your shell is bash, ksh, zsh or sh), add
                the following lines:

                QTDIR=/usr/local/qt
                PATH=$QTDIR/bin:$PATH
                MANPATH=$QTDIR/doc/man:$MANPATH
                LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

                export QTDIR PATH MANPATH LD_LIBRARY_PATH


                In .login (in case your shell is csh or tcsh), add the
                following lines:

                setenv   QTDIR /usr/local/qt
                setenv   PATH $QTDIR/bin:$PATH
                setenv   MANPATH $QTDIR/doc/man:$MANPATH
                setenv   LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH

                then log out and re-login and everything will be nice and
                clean!


        5. Installing GNU RADIO

        GNU radio does not require that you install it with QT; however, you should
        install it with QT anyway. All of these instructions in details could be found in
        the README file included in the GNU software.

        1. when you are in the folder with the source codes (the initial folder after untar)
        2. type “./configure” (this executable will configure the systems to create all the
           make files and check for compatibility issues and installation of required
           software)
        3. type “make” to compile
        4. type “make check” to run self-test
        5. type “make install” to install everything (this will take between 5-15 minutes)
        6. type “make clean” to clean all files that the configure process created

        When everything is installed successfully the program will have a file called
        “THANKS”

        All the examples to be tested are in the examples folder at
        ~/gnu-radio-0.8/src/gnu/examples


                                              9
Digital TV Tuner User Manual - 10




“Testing the Tuner” - Commands:
       These commands are available to use; however, there are more commands once
everything is completed. These commands are the commands in the examples folder.

HDTV:

./givelp1 ./set_agc value
this is will set the AGC (automatic control with a value)
example ./givelp1 ./set_agc 300 will set it to 300

./givelp1 ./microtune channel
(example ./microtune 207 FM) this gives the command to the microtune module to tune
to channel 207 FM

./adc3_fftavg
this command gives you the real time FFT and look something like this:




once you see the signals you could click on “quit” and continue on


mc4020-read-adc -b --count=100000000 --ch3 --1v > /path-to-fast-disk/test.dat
this command will sample the FM channel that was sent by the microtune command.
path-to-fast-disk -> you need to specify a disk space that is able to handle 40mb/sec
transfers.
mc4020-read-adc –b -> this will sample analog to digital –b is for binary
--count=100000000 -> this specify the number of samples to read
--ch3 --1v          -> sent into to channel 3 with sampling at +/- 1V
test.dat            -> just a file with .dat

cd ../atsc
go back to the atsc driver folder


                                           10
Digital TV Tuner User Manual - 11




./run_rx -L -s 20 -f /path-to-fast-disk/test.dat -o test.ts
this will convert the .dat file to .ts which is an MPEG transport stream


xine test.ts
xine will display the transport stream. Xine is not yet installed on this system so please
install it from the file on the disk or could be obtain at the website given above.


FM: the project was mainly working with HDTV most of these commands have not been
completely working due to lack of equipments arriving on time.

./givelp1 ./set_agc value
this is will set the AGC (automatic control with a value)
example ./givelp1 ./set_agc 300 will set it to 300

./givelp1 ./microtune channel
(example ./microtune 102.7 FM) this gives the command to the microtune module to tune
to channel 102.7 FM

./adc3_fftavg
this will produce another screen look like the top screen for HDTV and just click on
“quit” and continue on after you seen a reasonable wave.

./fm_demod1
this is decode it to audio




                                             11

						
Related docs
Other docs by waterwolltoremilion
Appendix Open Ended Comments
Views: 7  |  Downloads: 0
Alter Ego Trial Cover
Views: 9  |  Downloads: 0
Broadcasting Industry Market Research Report
Views: 14  |  Downloads: 0
Amazon Internet TV
Views: 8  |  Downloads: 0
AB SKHY TV Game Shows
Views: 4  |  Downloads: 0
Audio Entertainment and Lighting
Views: 6  |  Downloads: 0