linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Terratec H7 Rev. 4 is DVBSky
@ 2015-09-11 15:04 Erik Andresen
  2015-09-15 14:43 ` Olli Salonen
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Erik Andresen @ 2015-09-11 15:04 UTC (permalink / raw)
  To: linux-media


[-- Attachment #1.1: Type: text/plain, Size: 609 bytes --]

Hi,

I recently got a Terratec H7 in Revision 4 and turned out that it is not
just a new revision, but a new product with USB ProductID 0x10a5.
Previous revisions have been AZ6007, but this revision does not work
with this driver [1].

Output of lsusb (extended output attached):
Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH

The revision 4 seems to a DVBSky variant, adding its Product ID to
dvbsky.c with the attached patch enabled me to scan for channels and
watch DVB-C and DVB-T.

greetings,
Erik

[1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Add-Terratec-H7-Revision-4-to-DVBSky-driver.patch --]
[-- Type: text/x-diff; name="0001-Add-Terratec-H7-Revision-4-to-DVBSky-driver.patch", Size: 1557 bytes --]

From b453f37d9a6e9910cb7d76fa58ba724449ac9a22 Mon Sep 17 00:00:00 2001
From: Erik Andresen <erik@vontaene.de>
Date: Fri, 11 Sep 2015 16:51:10 +0200
Subject: [PATCH] Add Terratec H7 Revision 4 to DVBSky driver

---
 drivers/media/dvb-core/dvb-usb-ids.h  | 1 +
 drivers/media/usb/dvb-usb-v2/dvbsky.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h
index c117fb3..0a46580 100644
--- a/drivers/media/dvb-core/dvb-usb-ids.h
+++ b/drivers/media/dvb-core/dvb-usb-ids.h
@@ -257,6 +257,7 @@
 #define USB_PID_TERRATEC_CINERGY_T_XXS_2		0x00ab
 #define USB_PID_TERRATEC_H7				0x10b4
 #define USB_PID_TERRATEC_H7_2				0x10a3
+#define USB_PID_TERRATEC_H7_3				0x10a5
 #define USB_PID_TERRATEC_T3				0x10a0
 #define USB_PID_TERRATEC_T5				0x10a1
 #define USB_PID_NOXON_DAB_STICK				0x00b3
diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c
index cdf59bc..8f526a4 100644
--- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
+++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
@@ -841,6 +841,10 @@ static const struct usb_device_id dvbsky_id_table[] = {
 		USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
 		&dvbsky_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
 		RC_MAP_TT_1500) },
+        { DVB_USB_DEVICE(USB_VID_TERRATEC,
+                USB_PID_TERRATEC_H7_3,
+                &dvbsky_t680c_props, "Terratec H7 Rev.4",
+                RC_MAP_TT_1500) },
 	{ }
 };
 MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
-- 
2.5.0


[-- Attachment #1.3: lsusb.txt --]
[-- Type: text/plain, Size: 11122 bytes --]

Bus 002 Device 009: ID 0ccd:10a5 TerraTec Electronic GmbH 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0ccd TerraTec Electronic GmbH
  idProduct          0x10a5 
  bcdDevice            0.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          219
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x13f2  3x 1010 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       2
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x12d6  3x 726 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       3
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x12ae  3x 686 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       4
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x03ca  1x 970 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       5
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x02ac  1x 684 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       6
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x03ac  1x 940 bytes
        bInterval               1

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: Terratec H7 Rev. 4 is DVBSky
  2015-09-11 15:04 Terratec H7 Rev. 4 is DVBSky Erik Andresen
@ 2015-09-15 14:43 ` Olli Salonen
  2015-09-19 17:30 ` [PATCH] Add Terratec H7 Revision 4 to DVBSky driver Erik Andresen
  2015-09-19 21:39 ` Terratec H7 Rev. 4 is DVBSky Roger Mårtensson
  2 siblings, 0 replies; 9+ messages in thread
From: Olli Salonen @ 2015-09-15 14:43 UTC (permalink / raw)
  To: Erik Andresen; +Cc: linux-media

Hi Erik,

Your patch looks good to my eyes. I heard already earlier that the new
H7 is the same as the DVBSky receiver and your experience seems to
confirm that. Could you resend the patch again with a proper title and
a signed-off line to the mailing list?
https://www.kernel.org/doc/Documentation/SubmittingPatches is good
reading as well.

Cheers,
-olli


On 11 September 2015 at 17:04, Erik Andresen <erik@vontaene.de> wrote:
> Hi,
>
> I recently got a Terratec H7 in Revision 4 and turned out that it is not
> just a new revision, but a new product with USB ProductID 0x10a5.
> Previous revisions have been AZ6007, but this revision does not work
> with this driver [1].
>
> Output of lsusb (extended output attached):
> Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH
>
> The revision 4 seems to a DVBSky variant, adding its Product ID to
> dvbsky.c with the attached patch enabled me to scan for channels and
> watch DVB-C and DVB-T.
>
> greetings,
> Erik
>
> [1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Add Terratec H7 Revision 4 to DVBSky driver
  2015-09-11 15:04 Terratec H7 Rev. 4 is DVBSky Erik Andresen
  2015-09-15 14:43 ` Olli Salonen
@ 2015-09-19 17:30 ` Erik Andresen
  2015-10-01 21:01   ` Roger Mårtensson
  2015-09-19 21:39 ` Terratec H7 Rev. 4 is DVBSky Roger Mårtensson
  2 siblings, 1 reply; 9+ messages in thread
From: Erik Andresen @ 2015-09-19 17:30 UTC (permalink / raw)
  To: linux-media

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

Adds Terratec H7 Rev. 4 with USB id 0ccd:10a5 to DVBSky driver.

Signed-off-by: Erik Andresen <erik@vontaene.de>
---
 drivers/media/dvb-core/dvb-usb-ids.h  | 1 +
 drivers/media/usb/dvb-usb-v2/dvbsky.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h
index c117fb3..0a46580 100644
--- a/drivers/media/dvb-core/dvb-usb-ids.h
+++ b/drivers/media/dvb-core/dvb-usb-ids.h
@@ -257,6 +257,7 @@
 #define USB_PID_TERRATEC_CINERGY_T_XXS_2		0x00ab
 #define USB_PID_TERRATEC_H7				0x10b4
 #define USB_PID_TERRATEC_H7_2				0x10a3
+#define USB_PID_TERRATEC_H7_3				0x10a5
 #define USB_PID_TERRATEC_T3				0x10a0
 #define USB_PID_TERRATEC_T5				0x10a1
 #define USB_PID_NOXON_DAB_STICK				0x00b3
diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c
index cdf59bc..8f526a4 100644
--- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
+++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
@@ -841,6 +841,10 @@ static const struct usb_device_id dvbsky_id_table[] = {
 		USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
 		&dvbsky_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
 		RC_MAP_TT_1500) },
+        { DVB_USB_DEVICE(USB_VID_TERRATEC,
+                USB_PID_TERRATEC_H7_3,
+                &dvbsky_t680c_props, "Terratec H7 Rev.4",
+                RC_MAP_TT_1500) },
 	{ }
 };
 MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
-- 
2.5.0




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: Terratec H7 Rev. 4 is DVBSky
  2015-09-11 15:04 Terratec H7 Rev. 4 is DVBSky Erik Andresen
  2015-09-15 14:43 ` Olli Salonen
  2015-09-19 17:30 ` [PATCH] Add Terratec H7 Revision 4 to DVBSky driver Erik Andresen
@ 2015-09-19 21:39 ` Roger Mårtensson
  2015-09-19 21:48   ` Roger Mårtensson
  2 siblings, 1 reply; 9+ messages in thread
From: Roger Mårtensson @ 2015-09-19 21:39 UTC (permalink / raw)
  To: Erik Andresen, linux-media

Den 2015-09-11 kl. 17:04, skrev Erik Andresen:
> Hi,
>
> I recently got a Terratec H7 in Revision 4 and turned out that it is not
> just a new revision, but a new product with USB ProductID 0x10a5.
> Previous revisions have been AZ6007, but this revision does not work
> with this driver [1].
>
> Output of lsusb (extended output attached):
> Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH
>
> The revision 4 seems to a DVBSky variant, adding its Product ID to
> dvbsky.c with the attached patch enabled me to scan for channels and
> watch DVB-C and DVB-T.
>
> greetings,
> Erik
>
> [1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html
Do I feel lucky or what..
Just got my H7 devices delivered and noticed the lack of supported 
driver and some quick searches gave me this e-mail.
Maybe should take a trip to the race track. :)

I have tried this driver and it works wonderfully. I have noticed a 
freeze or two when handling the device (powering off, ripping USB etc) 
but I'm not sure it is the driver that is causing this.

I do notice something weird. The remote doesn't seem to work.
Found /sys/class/rc/rc0/ (/dev/input/event14) with:
         Driver dvb_usb_dvbsky, table rc-tt-1500
         Supported protocols: RC-5
         Enabled protocols:
         Name: Terratec H7 Rev.4
         bus: 3, vendor/product: 0ccd:10a5, version: 0x0000
         Repeat delay = 500 ms, repeat period = 125 ms

I'm not able to enable any protocols. Nothing happens when running 
ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" 
and nothing happens when testing with "ir-keytable -t".

I've tested on a Ubuntu 14.04 (Mythbuntu) with Linux Kernel 4.2 that I 
have to compile myself. (Don't know in which kernel dvbsky was released)
Tested using both Kaffeine and MythTV and it works like a charm (with 
the exception of missing IR).
I tested using DVB-C with CI for encrypted channels.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Terratec H7 Rev. 4 is DVBSky
  2015-09-19 21:39 ` Terratec H7 Rev. 4 is DVBSky Roger Mårtensson
@ 2015-09-19 21:48   ` Roger Mårtensson
  2015-09-20  9:05     ` Erik Andresen
  0 siblings, 1 reply; 9+ messages in thread
From: Roger Mårtensson @ 2015-09-19 21:48 UTC (permalink / raw)
  To: Erik Andresen, linux-media

Den 2015-09-19 kl. 23:39, skrev Roger Mårtensson:
> Den 2015-09-11 kl. 17:04, skrev Erik Andresen:
>> Hi,
>>
>> I recently got a Terratec H7 in Revision 4 and turned out that it is not
>> just a new revision, but a new product with USB ProductID 0x10a5.
>> Previous revisions have been AZ6007, but this revision does not work
>> with this driver [1].
>>
>> Output of lsusb (extended output attached):
>> Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH
>>
>> The revision 4 seems to a DVBSky variant, adding its Product ID to
>> dvbsky.c with the attached patch enabled me to scan for channels and
>> watch DVB-C and DVB-T.
>>
>> greetings,
>> Erik
>>
>> [1] 
>> https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html
> Do I feel lucky or what..
> Just got my H7 devices delivered and noticed the lack of supported 
> driver and some quick searches gave me this e-mail.
> Maybe should take a trip to the race track. :)
>
> I have tried this driver and it works wonderfully. I have noticed a 
> freeze or two when handling the device (powering off, ripping USB etc) 
> but I'm not sure it is the driver that is causing this.
>
> I do notice something weird. The remote doesn't seem to work.
> Found /sys/class/rc/rc0/ (/dev/input/event14) with:
>         Driver dvb_usb_dvbsky, table rc-tt-1500
>         Supported protocols: RC-5
>         Enabled protocols:
>         Name: Terratec H7 Rev.4
>         bus: 3, vendor/product: 0ccd:10a5, version: 0x0000
>         Repeat delay = 500 ms, repeat period = 125 ms
>
> I'm not able to enable any protocols. Nothing happens when running 
> ir-keytable with "-p rc-5". Nothing shows in the row "Enabled 
> protocols" and nothing happens when testing with "ir-keytable -t".
>
> I've tested on a Ubuntu 14.04 (Mythbuntu) with Linux Kernel 4.2 that I 
> have to compile myself. (Don't know in which kernel dvbsky was released)
> Tested using both Kaffeine and MythTV and it works like a charm (with 
> the exception of missing IR).
> I tested using DVB-C with CI for encrypted channels
One more this..
Is there a possibility that Signal strength support could be added to 
the driver?
MythTV uses this and I think Kaffeine also uses it (not sure). Currently 
the logs are filling up with "Operation not supported".


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Terratec H7 Rev. 4 is DVBSky
  2015-09-19 21:48   ` Roger Mårtensson
@ 2015-09-20  9:05     ` Erik Andresen
  2015-10-01 21:02       ` Roger Mårtensson
  0 siblings, 1 reply; 9+ messages in thread
From: Erik Andresen @ 2015-09-20  9:05 UTC (permalink / raw)
  To: Roger Mårtensson, linux-media

[-- Attachment #1: Type: text/plain, Size: 2800 bytes --]

Hi Roger,

> I'm not able to enable any protocols. Nothing happens when running ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" and nothing happens when testing with "ir-keytable -t". 
try to give it the device, e.g.

ir-keytable -d /dev/input/event14 -t

I was able to get output from it. The device is now running for a week under mythbackend.

greetings,
Erik


Am 19.09.2015 um 23:48 schrieb Roger Mårtensson:
> Den 2015-09-19 kl. 23:39, skrev Roger Mårtensson:
>> Den 2015-09-11 kl. 17:04, skrev Erik Andresen:
>>> Hi,
>>>
>>> I recently got a Terratec H7 in Revision 4 and turned out that it is not
>>> just a new revision, but a new product with USB ProductID 0x10a5.
>>> Previous revisions have been AZ6007, but this revision does not work
>>> with this driver [1].
>>>
>>> Output of lsusb (extended output attached):
>>> Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH
>>>
>>> The revision 4 seems to a DVBSky variant, adding its Product ID to
>>> dvbsky.c with the attached patch enabled me to scan for channels and
>>> watch DVB-C and DVB-T.
>>>
>>> greetings,
>>> Erik
>>>
>>> [1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html
>> Do I feel lucky or what..
>> Just got my H7 devices delivered and noticed the lack of supported driver and some quick searches gave me this e-mail.
>> Maybe should take a trip to the race track. :)
>>
>> I have tried this driver and it works wonderfully. I have noticed a freeze or two when handling the device (powering off, ripping USB etc) but I'm not sure it is the driver that is causing this.
>>
>> I do notice something weird. The remote doesn't seem to work.
>> Found /sys/class/rc/rc0/ (/dev/input/event14) with:
>>         Driver dvb_usb_dvbsky, table rc-tt-1500
>>         Supported protocols: RC-5
>>         Enabled protocols:
>>         Name: Terratec H7 Rev.4
>>         bus: 3, vendor/product: 0ccd:10a5, version: 0x0000
>>         Repeat delay = 500 ms, repeat period = 125 ms
>>
>> I'm not able to enable any protocols. Nothing happens when running ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" and nothing happens when testing with "ir-keytable -t".
>>
>> I've tested on a Ubuntu 14.04 (Mythbuntu) with Linux Kernel 4.2 that I have to compile myself. (Don't know in which kernel dvbsky was released)
>> Tested using both Kaffeine and MythTV and it works like a charm (with the exception of missing IR).
>> I tested using DVB-C with CI for encrypted channels
> One more this..
> Is there a possibility that Signal strength support could be added to the driver?
> MythTV uses this and I think Kaffeine also uses it (not sure). Currently the logs are filling up with "Operation not supported".



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Add Terratec H7 Revision 4 to DVBSky driver
  2015-09-19 17:30 ` [PATCH] Add Terratec H7 Revision 4 to DVBSky driver Erik Andresen
@ 2015-10-01 21:01   ` Roger Mårtensson
  2015-10-01 21:21     ` Roger Mårtensson
  0 siblings, 1 reply; 9+ messages in thread
From: Roger Mårtensson @ 2015-10-01 21:01 UTC (permalink / raw)
  To: Erik Andresen, linux-media

Den 2015-09-19 kl. 19:30, skrev Erik Andresen:
> Adds Terratec H7 Rev. 4 with USB id 0ccd:10a5 to DVBSky driver.

I have tested this on a Custom Linux 4.2 kernel and it is working as 
expected.
Noticed a few things.

1) "Supported:" on ir-keytable doesn't show anything.
1b) Setting RC-5 with ir-keytable -p gives me an error.
2) Keymap tt-1500 may be for dvbsky but not for H7 Rev 4. Needed to do 
my own keymap. (48 button remote)
2b) The Remote buttons "Music" and "Pic" doesn't give any scancodes in 
ir-keytable -t.

I have tested in a DVB-C environment with CAM/CI and encrypted channels.
I have two H7 devices and one of them seem to get into a hang and needs 
to be powercycled now and then. At the moment it is always the same one 
that hangs. A linux reboot does not help but I need to do it sometimes 
together with a power cycle of the hanging device.


> Signed-off-by: Erik Andresen <erik@vontaene.de>
> ---
>   drivers/media/dvb-core/dvb-usb-ids.h  | 1 +
>   drivers/media/usb/dvb-usb-v2/dvbsky.c | 4 ++++
>   2 files changed, 5 insertions(+)
>
> diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h
> index c117fb3..0a46580 100644
> --- a/drivers/media/dvb-core/dvb-usb-ids.h
> +++ b/drivers/media/dvb-core/dvb-usb-ids.h
> @@ -257,6 +257,7 @@
>   #define USB_PID_TERRATEC_CINERGY_T_XXS_2		0x00ab
>   #define USB_PID_TERRATEC_H7				0x10b4
>   #define USB_PID_TERRATEC_H7_2				0x10a3
> +#define USB_PID_TERRATEC_H7_3				0x10a5
>   #define USB_PID_TERRATEC_T3				0x10a0
>   #define USB_PID_TERRATEC_T5				0x10a1
>   #define USB_PID_NOXON_DAB_STICK				0x00b3
> diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c
> index cdf59bc..8f526a4 100644
> --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
> +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
> @@ -841,6 +841,10 @@ static const struct usb_device_id dvbsky_id_table[] = {
>   		USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
>   		&dvbsky_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
>   		RC_MAP_TT_1500) },
> +        { DVB_USB_DEVICE(USB_VID_TERRATEC,
> +                USB_PID_TERRATEC_H7_3,
> +                &dvbsky_t680c_props, "Terratec H7 Rev.4",
> +                RC_MAP_TT_1500) },
>   	{ }
>   };
>   MODULE_DEVICE_TABLE(usb, dvbsky_id_table);


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Terratec H7 Rev. 4 is DVBSky
  2015-09-20  9:05     ` Erik Andresen
@ 2015-10-01 21:02       ` Roger Mårtensson
  0 siblings, 0 replies; 9+ messages in thread
From: Roger Mårtensson @ 2015-10-01 21:02 UTC (permalink / raw)
  To: Erik Andresen, linux-media

Den 2015-09-20 kl. 11:05, skrev Erik Andresen:
> Hi Roger,
>
>> I'm not able to enable any protocols. Nothing happens when running ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" and nothing happens when testing with "ir-keytable -t".
> try to give it the device, e.g.
>
> ir-keytable -d /dev/input/event14 -t
>
> I was able to get output from it. The device is now running for a week under mythbackend.
I got this to work but needed to create my own keymap since Ubuntu 14.04 
didn't have it.

> greetings,
> Erik
>
>
> Am 19.09.2015 um 23:48 schrieb Roger Mårtensson:
>> Den 2015-09-19 kl. 23:39, skrev Roger Mårtensson:
>>> Den 2015-09-11 kl. 17:04, skrev Erik Andresen:
>>>> Hi,
>>>>
>>>> I recently got a Terratec H7 in Revision 4 and turned out that it is not
>>>> just a new revision, but a new product with USB ProductID 0x10a5.
>>>> Previous revisions have been AZ6007, but this revision does not work
>>>> with this driver [1].
>>>>
>>>> Output of lsusb (extended output attached):
>>>> Bus 001 Device 011: ID 0ccd:10a5 TerraTec Electronic GmbH
>>>>
>>>> The revision 4 seems to a DVBSky variant, adding its Product ID to
>>>> dvbsky.c with the attached patch enabled me to scan for channels and
>>>> watch DVB-C and DVB-T.
>>>>
>>>> greetings,
>>>> Erik
>>>>
>>>> [1] https://www.mail-archive.com/linux-media@vger.kernel.org/msg70934.html
>>> Do I feel lucky or what..
>>> Just got my H7 devices delivered and noticed the lack of supported driver and some quick searches gave me this e-mail.
>>> Maybe should take a trip to the race track. :)
>>>
>>> I have tried this driver and it works wonderfully. I have noticed a freeze or two when handling the device (powering off, ripping USB etc) but I'm not sure it is the driver that is causing this.
>>>
>>> I do notice something weird. The remote doesn't seem to work.
>>> Found /sys/class/rc/rc0/ (/dev/input/event14) with:
>>>          Driver dvb_usb_dvbsky, table rc-tt-1500
>>>          Supported protocols: RC-5
>>>          Enabled protocols:
>>>          Name: Terratec H7 Rev.4
>>>          bus: 3, vendor/product: 0ccd:10a5, version: 0x0000
>>>          Repeat delay = 500 ms, repeat period = 125 ms
>>>
>>> I'm not able to enable any protocols. Nothing happens when running ir-keytable with "-p rc-5". Nothing shows in the row "Enabled protocols" and nothing happens when testing with "ir-keytable -t".
>>>
>>> I've tested on a Ubuntu 14.04 (Mythbuntu) with Linux Kernel 4.2 that I have to compile myself. (Don't know in which kernel dvbsky was released)
>>> Tested using both Kaffeine and MythTV and it works like a charm (with the exception of missing IR).
>>> I tested using DVB-C with CI for encrypted channels
>> One more this..
>> Is there a possibility that Signal strength support could be added to the driver?
>> MythTV uses this and I think Kaffeine also uses it (not sure). Currently the logs are filling up with "Operation not supported".
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Add Terratec H7 Revision 4 to DVBSky driver
  2015-10-01 21:01   ` Roger Mårtensson
@ 2015-10-01 21:21     ` Roger Mårtensson
  0 siblings, 0 replies; 9+ messages in thread
From: Roger Mårtensson @ 2015-10-01 21:21 UTC (permalink / raw)
  To: Erik Andresen, linux-media

Den 2015-10-01 kl. 23:01, skrev Roger Mårtensson:
> Den 2015-09-19 kl. 19:30, skrev Erik Andresen:
>> Adds Terratec H7 Rev. 4 with USB id 0ccd:10a5 to DVBSky driver.
>
> I have tested this on a Custom Linux 4.2 kernel and it is working as 
> expected.
> Noticed a few things.
>
> 1) "Supported:" on ir-keytable doesn't show anything.
> 1b) Setting RC-5 with ir-keytable -p gives me an error.
> 2) Keymap tt-1500 may be for dvbsky but not for H7 Rev 4. Needed to do 
> my own keymap. (48 button remote)
> 2b) The Remote buttons "Music" and "Pic" doesn't give any scancodes in 
> ir-keytable -t.
>
> I have tested in a DVB-C environment with CAM/CI and encrypted channels.
> I have two H7 devices and one of them seem to get into a hang and 
> needs to be powercycled now and then. At the moment it is always the 
> same one that hangs. A linux reboot does not help but I need to do it 
> sometimes together with a power cycle of the hanging device.
>
>
I forgot something and I'm not sure you have the right documentation for 
it. Some operations seems not to be implemented.
I get a lot of error in MythTV when locking to a channel. It sure would 
be nice to see it implemented. It doesn't do any harm. Only filling up 
the log.

Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: E TVRecEvent 
recorders/dvbchannel.cpp:1026 (GetSignalStrength) 
DVBChan[23](/dev/dvb/adapter2/frontend0): Getting Frontend signal 
strength failed.#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: W TVRecEvent 
recorders/dvbsignalmonitor.cpp:91 (DVBSignalMonitor) 
DVBSigMon[23](/dev/dvb/adapter2/frontend0): Cannot measure Signal 
Strength#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: E TVRecEvent 
recorders/dvbchannel.cpp:1055 (GetSNR) 
DVBChan[23](/dev/dvb/adapter2/frontend0): Getting Frontend signal/noise 
ratio failed.#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: W TVRecEvent 
recorders/dvbsignalmonitor.cpp:93 (DVBSignalMonitor) 
DVBSigMon[23](/dev/dvb/adapter2/frontend0): Cannot measure 
S/N#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: E TVRecEvent 
recorders/dvbchannel.cpp:1081 (GetBitErrorRate) 
DVBChan[23](/dev/dvb/adapter2/frontend0): Getting Frontend signal error 
rate failed.#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: W TVRecEvent 
recorders/dvbsignalmonitor.cpp:95 (DVBSignalMonitor) 
DVBSigMon[23](/dev/dvb/adapter2/frontend0): Cannot measure Bit Error 
Rate#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: E TVRecEvent 
recorders/dvbchannel.cpp:1107 (GetUncorrectedBlockCount) 
DVBChan[23](/dev/dvb/adapter2/frontend0): Getting Frontend uncorrected 
block count failed.#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: W TVRecEvent 
recorders/dvbsignalmonitor.cpp:97 (DVBSignalMonitor) 
DVBSigMon[23](/dev/dvb/adapter2/frontend0): Cannot count Uncorrected 
Blocks#012#011#011#011eno: Operation not supported (95)
Oct  1 23:11:16 tvpc mythbackend: mythbackend[2911]: E SignalMonitor 
recorders/dvbchannel.cpp:1026 (GetSignalStrength) 
DVBChan[23](/dev/dvb/adapter2/frontend0): Getting Frontend signal 
strength failed.#012#011#011#011eno: Operation not supported (95)

>> Signed-off-by: Erik Andresen <erik@vontaene.de>
>> ---
>>   drivers/media/dvb-core/dvb-usb-ids.h  | 1 +
>>   drivers/media/usb/dvb-usb-v2/dvbsky.c | 4 ++++
>>   2 files changed, 5 insertions(+)
>>
>> diff --git a/drivers/media/dvb-core/dvb-usb-ids.h 
>> b/drivers/media/dvb-core/dvb-usb-ids.h
>> index c117fb3..0a46580 100644
>> --- a/drivers/media/dvb-core/dvb-usb-ids.h
>> +++ b/drivers/media/dvb-core/dvb-usb-ids.h
>> @@ -257,6 +257,7 @@
>>   #define USB_PID_TERRATEC_CINERGY_T_XXS_2        0x00ab
>>   #define USB_PID_TERRATEC_H7                0x10b4
>>   #define USB_PID_TERRATEC_H7_2                0x10a3
>> +#define USB_PID_TERRATEC_H7_3                0x10a5
>>   #define USB_PID_TERRATEC_T3                0x10a0
>>   #define USB_PID_TERRATEC_T5                0x10a1
>>   #define USB_PID_NOXON_DAB_STICK                0x00b3
>> diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c 
>> b/drivers/media/usb/dvb-usb-v2/dvbsky.c
>> index cdf59bc..8f526a4 100644
>> --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
>> +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
>> @@ -841,6 +841,10 @@ static const struct usb_device_id 
>> dvbsky_id_table[] = {
>>           USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
>>           &dvbsky_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
>>           RC_MAP_TT_1500) },
>> +        { DVB_USB_DEVICE(USB_VID_TERRATEC,
>> +                USB_PID_TERRATEC_H7_3,
>> +                &dvbsky_t680c_props, "Terratec H7 Rev.4",
>> +                RC_MAP_TT_1500) },
>>       { }
>>   };
>>   MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-01 21:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-11 15:04 Terratec H7 Rev. 4 is DVBSky Erik Andresen
2015-09-15 14:43 ` Olli Salonen
2015-09-19 17:30 ` [PATCH] Add Terratec H7 Revision 4 to DVBSky driver Erik Andresen
2015-10-01 21:01   ` Roger Mårtensson
2015-10-01 21:21     ` Roger Mårtensson
2015-09-19 21:39 ` Terratec H7 Rev. 4 is DVBSky Roger Mårtensson
2015-09-19 21:48   ` Roger Mårtensson
2015-09-20  9:05     ` Erik Andresen
2015-10-01 21:02       ` Roger Mårtensson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).