Jump to content


Photo

RTL2832U chipset support proposal

DVB-T

  • Please log in to reply
170 replies to this topic

Re: RTL2832U chipset support proposal #101 mworker

  • Senior Member
  • 51 posts

+2
Neutral

Posted 6 October 2012 - 17:13

Hello,
i have this tuner:LifeView LV5T Not Only TV USB Stick Deluxe.
It works fine under Ubuntu 12.04

[ 7.571829] dvb-usb: found a 'DVB-T TV Stick' in warm state.
[ 7.571840] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 7.573489] DVB: registering new adapter (DVB-T TV Stick)
[ 7.594699] RTL2832U usb_init_bulk_setting : USB2.0 HIGH SPEED (480Mb/s)
[ 7.634056] lirc_dev: IR Remote Control driver registered, major 249
[ 7.635874] i2c-core: driver [tuner] using legacy suspend method
[ 7.635878] i2c-core: driver [tuner] using legacy resume method
[ 7.636781] rc rc0: lirc_dev: driver ir-lirc-codec (saa7134) registered at minor = 0
[ 7.636786] IR LIRC bridge handler initialized
[ 7.836026] tuner 0-004b: Tuner -1 found with type(s) Radio TV.
[ 7.856208] RTL2832U check_tuner_type : E4000 tuner on board...
[ 8.457238] DVB: registering adapter 0 frontend 0 (Realtek DVB-T RTL2832)...
[ 8.458496] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/input/input7
[ 8.459977] dvb-usb: schedule remote query interval to 287 msecs.
[ 8.459986] dvb-usb: DVB-T TV Stick successfully initialized and connected.
[ 8.460977] usbcore: registered new interface driver dvb_usb_rtl2832u
[ 855.789533] RTL2832U usb_init_bulk_setting : USB2.0 HIGH SPEED (480Mb/s)
[ 922.669234] RTL2832U usb_init_bulk_setting : USB2.0 HIGH SPEED (480Mb/s)
[ 930.059706] RTL2832U usb_init_bulk_setting : USB2.0 HIGH SPEED (480Mb/s)

lsusb command returns:Bus 001 Device 005: ID 1f4d:c803 G-Tek Electronics Group.

Is this device supported?
Thanks

Re: RTL2832U chipset support proposal #102 caidbaa

  • Member
  • 20 posts

0
Neutral

Posted 6 October 2012 - 23:22

Hi!

Can anybody make that for dm800?

thanx Guys!

Re: RTL2832U chipset support proposal #103 stunt89

  • Member
  • 1 posts

0
Neutral

Posted 1 November 2012 - 22:46

Hello all,

ive got a MSI Digi vox Trio device which should also use this chipset.
Is there a chance to get it running on VU+ UNO (with newest VTI Image)

I already tried the DM ipks here but it does not work....

Thanks in advance for your help!

Re: RTL2832U chipset support proposal #104 ims

  • PLi® Core member
  • 13,785 posts

+214
Excellent

Posted 7 January 2013 - 12:41

There in Menu -> Information -> Service is for Mutliplex most parameters as "auto" for my USB DVB-T RTL2832.
Is it problem in E2 or rtl2832's driver returns "0" for this parameters ( Guard Interval , Code rate HP, Code rate LP ...) ?
Kdo nic nedělá, nic nezkazí!

Re: RTL2832U chipset support proposal #105 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 7 January 2013 - 13:09

most likely the driver returns this value (probably because it does not need these settings, they are auto detected)

Re: RTL2832U chipset support proposal #106 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 24 January 2013 - 18:29

Hi guys,
recently I bought an ultra-cheap DVB-T stick form a Chinese ebayer that is based on the rtl2832 chipset with a new tuner: the Rafael Micro R820T. It is not supported by the current dvb-usb-rtl2832 OpenPli driver, but I found a new version of the Realtek driver that adds support for this new tuner. So I ported all our enhancements on the new driver version and I made a new patch for the ETxx00 3.6.0 kernels (see dvb-usb-rtl2832_kernel_3.6.tar.gz in attachment).
It is a drop-in replacement of the current patch (there's no need to modify the recipe). This patch should also apply to older kernels (e.g. the 3.2 DMM kernel) but you may have to adapt the dvb-usb Makefile and Kconfig bits in order to apply it (not tested).

While I was working on it, I also added support for newer kernels (up to 3.8-rc4) and the current media_build experimental tree (http://git.linuxtv.org/media_build.git).
Linux PC users can use the second patch (dvb-usb-rtl2832_kernel_3.8.tar.gz) to add support for the new rtl2832 devices to their distribution kernels (through the media_build script).
A different patch is needed because in kernel 3.8 the directory structure of the media drivers has changed, so all the files have a different path.

I also implemented properly the get_frontend() ioctl on this driver, so now you can read the real tuning parameters from the tuner in Enigma 2 (Guard Interval , Code rate HP, Code rate LP, Inversion, ...). I hope this makes Ims happy ;-)

Attached Files


Edited by Gennar1, 24 January 2013 - 18:33.


Re: RTL2832U chipset support proposal #107 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 24 January 2013 - 21:27

thanks, I've replaced the current dvb-usb-rtl2832.patch

Re: RTL2832U chipset support proposal #108 sonic74

  • Member
  • 2 posts

0
Neutral

Posted 26 January 2013 - 03:46

Thanks for your patch, Gennar1! Now I can watch DVB-T on my Android with my rtl-sdr :)
You might want to rename some enum members, else there is a compiler error:
In file included from drivers/media/dvb/dvb-usb/rtl2832u.c:7:
drivers/media/dvb/dvb-usb/rtl2832u_audio.h:43: error: expected identifier before '(' token
because CR_* is already defined on the ARM platform. I just appended a "_" in rtl2832u_audio.*
If someone needs the kernel module for the Galaxy Nexus and the app, I made it available here.

Re: RTL2832U chipset support proposal #109 R00KIE

  • Member
  • 10 posts

0
Neutral

Posted 27 January 2013 - 00:02

Thanks for providing this patch with an updated driver.

I have noticed that you may want to change the check for kernel >= 3.8 to kernel >= 3.7 in rtl2832u_audio.h because building with kernel 3.7 also breaks with the "unknown field ‘fe_ioctl_override’ specified in initializer" error.

Also, is there any place where this new patch is publicly available for download? By this I mean anyone can download without having to register.
Regards,
R00KIE

Re: RTL2832U chipset support proposal #110 R00KIE

  • Member
  • 10 posts

0
Neutral

Posted 27 January 2013 - 12:15

Also, is there any place where this new patch is publicly available for download? By this I mean anyone can download without having to register.


Nevermind the silly question, I found it on sourceforge :)

I see that there is something about audio support in the driver, does anyone know if this is DAB or direct FM support and how to use it?
Regards,
R00KIE

Re: RTL2832U chipset support proposal #111 sonic74

  • Member
  • 2 posts

0
Neutral

Posted 27 January 2013 - 14:28

Nevermind the silly question, I found it on sourceforge :)


To ask an even sillier question: where? ;)

Re: RTL2832U chipset support proposal #112 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 27 January 2013 - 14:37

sonic74, R00KIE,
thanks for your feedback: I will fix the issues in a next revision of the patches.

This driver has some support for FM and DAB, but it is provided through a custom ioctl, since the dvb-usb framework provides no support for those delivery systems.
The ioctl is defined in rtl2832_audio.h:
#define FE_FM_CMD    _IOWR('o', 90,  struct fm_cmd_struct)

so you will need at least a customized application to be able to use it.
Also, for DAB you will need a software demodulator to really use it: AFAIK, currently there is no open source implementation available.
Maybe one day the rtl-sdr guys will come up with some news about that.

Re: RTL2832U chipset support proposal #113 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 27 January 2013 - 17:13

This is a new version of the patches with the suggested fixes. The patch for kernel 3.8 is renamed to dvb-usb-rtl2832_kernel_3.7+.tar.gz since now it supports kernels 3.7, 3.8 and the experimental media_build tree.

There is no need to update the OpenPli kernels again, since the fixes are necessary only for kernel 3.7 or on the ARM platform.

Attached Files



Re: RTL2832U chipset support proposal #114 R00KIE

  • Member
  • 10 posts

0
Neutral

Posted 28 January 2013 - 23:48


Nevermind the silly question, I found it on sourceforge :)


To ask an even sillier question: where? ;)


Here:
http://openpli.git.s...74c8f92ef862b60

This is the first revision of the patch dvb-usb-rtl2832_kernel_3.6.tar.gz so it doesn't include the newest fixes. This time I haven't found the latest revision of the patch on sourceforge (I may have missed it though).
Regards,
R00KIE

Re: RTL2832U chipset support proposal #115 michaelp

  • Member
  • 6 posts

0
Neutral

Posted 2 February 2013 - 07:17

I just wanted to add that the Leadtek DTV2000DS PLUS has this chipset. It's ID is 0413:6f12, and it's not included in the driver as far as I can see.

lsusb -v output can be seen here http://ubuntuforums....66#post12487666

I am not sure, but it may be the same as the Mygica T1800B which also has this chipset, and also seems not to be included. While both are PCI cards, I think they use an onboard USB controller and show up as usb devices.

I hope this is the right place for this. Thanks for your work Ambrosa!

Re: RTL2832U chipset support proposal #116 WTE

  • Senior Member
  • 821 posts

+36
Good

Posted 2 February 2013 - 09:57

I just wanted to add that the Leadtek DTV2000DS PLUS has this chipset. It's ID is 0413:6f12, and it's not included in the driver as far as I can see.

lsusb -v output can be seen here http://ubuntuforums....66#post12487666

I am not sure, but it may be the same as the Mygica T1800B which also has this chipset, and also seems not to be included. While both are PCI cards, I think they use an onboard USB controller and show up as usb devices.

I hope this is the right place for this. Thanks for your work Ambrosa!


This is not related for our enigma boxes as the box has no PCI slot.
Your link allready had a replay for a solution: http://ubuntuforums....666&postcount=7

Mut@nt HD51 STB 4K

   :rolleyes:                :rolleyes:


Re: RTL2832U chipset support proposal #117 michaelp

  • Member
  • 6 posts

0
Neutral

Posted 3 February 2013 - 12:24

This is not related for our enigma boxes as the box has no PCI slot.
Your link allready had a replay for a solution: http://ubuntuforums....666&postcount=7


Hi WTE. Thanks for your answer, but I'm afraid I don't quite follow the first bit. I know this thread (and the driver) is mainly about USB TV sticks, but these PCI cards actually use USB chipsets attached to a VIA PCI-to-USB bridge. So (assuming the PCI - USB bridge is supported in the kernel) they behave just like USB devices. At least they appear in lsusb, not lspci.

The 'solution' you refer to was posted by myself, but I haven't tried it yet :D I just hoped to ask the driver developers to include my device in the driver, though I should certainly see if I can get it working first. I'll report back.

Re: RTL2832U chipset support proposal #118 WTE

  • Senior Member
  • 821 posts

+36
Good

Posted 3 February 2013 - 18:45


This is not related for our enigma boxes as the box has no PCI slot.
Your link allready had a replay for a solution: http://ubuntuforums....666&postcount=7


Hi WTE. Thanks for your answer, but I'm afraid I don't quite follow the first bit. I know this thread (and the driver) is mainly about USB TV sticks, but these PCI cards actually use USB chipsets attached to a VIA PCI-to-USB bridge. So (assuming the PCI - USB bridge is supported in the kernel) they behave just like USB devices. At least they appear in lsusb, not lspci.

The 'solution' you refer to was posted by myself, but I haven't tried it yet :D I just hoped to ask the driver developers to include my device in the driver, though I should certainly see if I can get it working first. I'll report back.


The devices have a PCI express connector and act like usb device right?
When it's different can you inform which hardware model has an fixed usb connector.
The enigma2 hardware we use doesn't have PCI slot.

Mut@nt HD51 STB 4K

   :rolleyes:                :rolleyes:


Re: RTL2832U chipset support proposal #119 michaelp

  • Member
  • 6 posts

0
Neutral

Posted 4 February 2013 - 06:59

Ok now I understand. You are right WTE that the card I am talking about is a PCI card and therefore is of no use in your enigma2 set top boxes. However, Ambrosa's driver is used more broadly in linux PCs, and so I came to this forum to ask for support on behalf of the people who are doing that. I'm sorry if it was off topic! Perhaps I should contact Ambrosa through some other channel.

In any case, I first need to see if I can make the driver work with the card.

Re: RTL2832U chipset support proposal #120 michaelp

  • Member
  • 6 posts

0
Neutral

Posted 4 February 2013 - 09:40

Now I have tried the driver without any luck. I am on xubuntu 12.04 with 3.2 kernel, so I set that option in the Makefile. Then I edited rtl2832.h to add the ID of my device, that is, I added the line

#define USB_PID_LEADTEK_WARM_4 0X6F12

after the other leadtek devices. I only guessed that this was the thing to do - I don't really know what I'm doing!

Then I compiled and installed the driver according to Ambrosa's instructions. This is what happens in dmesg after I insert the driver with modprobe:

[ 218.665051] usbcore: registered new interface driver dvb_usb_rtl2832u
[ 218.676498] IR NEC protocol handler initialized
[ 218.677770] IR RC5(x) protocol handler initialized
[ 218.682398] IR RC6 protocol handler initialized
[ 218.689524] IR JVC protocol handler initialized
[ 218.690924] IR Sony protocol handler initialized
[ 218.692542] IR MCE Keyboard/mouse protocol handler initialized
[ 218.694192] lirc_dev: IR Remote Control driver registered, major 249
[ 218.694942] IR LIRC bridge handler initialized

It doesn't seem to detect the card, and /dev/dvb/ doesn't exist. Next I tried adding the product ID to /sys/bus/usb/drivers/dvb_usb_rtl2832u/new_id as suggested in this page but that didn't work either.

Any ideas would be greatly appreciated!



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users