Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Setup of USB DVB-T Receiver

The DVB-T USB device should be connected to a USB2 connection for it to receive the appropriate power. Connecting a DVB-T worked out of the box under Ubuntu 9.04 but on Ubuntu 9.10 (100220) and later, after connecting the device to a USB port the appropriate firmware, dvb-usb-vp7045-01.fw, was not being found. We can see this is the problem by looking at the dmesg log:

$ dmesg -T
[643435.719338] usb 2-4.3: new high-speed USB device number 12 
                using ehci-pci
[643435.827368] usb 2-4.3: New USB device found, idVendor=13d3, 
                idProduct=3223
[643435.827371] usb 2-4.3: New USB device strings: Mfr=0, Product=0, 
                SerialNumber=0
[643436.669006] dvb-usb: found a 'DigitalNow TinyUSB 2 DVB-t Receiver' in 
                cold state, will try to load a firmware
[643436.669686] dvb-usb: did not find the firmware file. 
                (dvb-usb-vp7045-01.fw) Please see linux/Documentation/dvb/
                for more details on firmware-problems. (-2)
[643436.669692] dvb_usb_vp7045: probe of 2-4.3:1.0 failed with error -2
[643436.669896] usbcore: registered new interface driver dvb_usb_vp7045
[643441.124937] usb 2-4.3: USB disconnect, device number 12

The firmware can be copied from www.linuxtv.org and copied into /lib/firmware for it to be loaded.

$ cd /lib/firmware
$ sudo wget http://www.linuxtv.org/downloads/firmware/dvb-usb-vp7045-01.fw

Then plug in the USB device and look that dmesg reports that it is noticed:

[646474.551035] usb 2-4.3: new high-speed USB device number 13 
                using ehci-pci
[646474.658955] usb 2-4.3: New USB device found, idVendor=13d3, 
                idProduct=3223
[646474.658959] usb 2-4.3: New USB device strings: Mfr=0, Product=0, 
                SerialNumber=0
[646474.659326] dvb-usb: found a 'DigitalNow TinyUSB 2 DVB-t Receiver' in
                cold state, will try to load a firmware
[646474.659382] dvb-usb: downloading firmware from file 
                'dvb-usb-vp7045-01.fw'
[646474.847712] usb 2-4.3: USB disconnect, device number 13
[646474.847738] dvb-usb: generic DVB-USB module successfully deinitialized 
                and disconnected.
[646476.593665] usb 2-4.3: new high-speed USB device number 14 using ehci-pci
[646476.702909] usb 2-4.3: New USB device found, idVendor=13d3, idProduct=3206
[646476.702913] usb 2-4.3: New USB device strings: Mfr=1, Product=2, 
                SerialNumber=0
[646476.702915] usb 2-4.3: Product: VP-7045
[646476.702917] usb 2-4.3: Manufacturer: TWINHAN
[646476.703403] dvb-usb: found a 'Twinhan USB2.0 DVB-T receiver
                (TwinhanDTV Alpha/MagicBox II)' in warm state.
[646476.857412] dvb-usb: will pass the complete MPEG2 transport stream to 
                the software demuxer.
[646476.857920] DVB: registering new adapter (Twinhan USB2.0 DVB-T receiver 
                (TwinhanDTV Alpha/MagicBox II))
[646476.929096] dvb-usb: MAC address: 08:ca:1a:c5:a9:ff
[646476.940949] usb 2-4.3: DVB: registering adapter 0 frontend 0 
                (Twinhan VP7045/46 USB DVB-T)...
[646476.941143] input: IR-receiver inside an USB DVB receiver as 
                /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4.3/input/input7
[646476.941302] dvb-usb: schedule remote query interval to 400 msecs.
[646477.096547] dvb-usb: Twinhan USB2.0 DVB-T receiver 
                (TwinhanDTV Alpha/MagicBox II) 
                successfully initialized and connected.

Once the driver is installed you should have a folder /dev/dvb/adapter0/ containing something like:

$ ls -l /dev/dvb/adapter0/
total 0
crw-rw----+ 1 root video 212, 0 Jan 12 11:10 demux0
crw-rw----+ 1 root video 212, 1 Jan 12 11:10 dvr0
crw-rw----+ 1 root video 212, 3 Jan 12 11:10 frontend0
crw-rw----+ 1 root video 212, 2 Jan 12 11:10 net0


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © Togaware Pty Ltd. . Creative Commons ShareAlike V4.