Message ID | 20120229114452.GA10161@kende.fi |
---|---|
State | New |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <kende@kende.fi>) id 1S2hxp-0002lm-9X for vdr@linuxtv.org; Wed, 29 Feb 2012 12:44:57 +0100 X-tubIT-Incoming-IP: 62.142.5.116 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by mail.tu-berlin.de (exim-4.75/mailfrontend-4) with esmtps [TLSv1:AES256-SHA:256] for <vdr@linuxtv.org> id 1S2hxo-0005uq-CX; Wed, 29 Feb 2012 12:44:57 +0100 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh06-2.mail.saunalahti.fi (Postfix) with SMTP id 522DAC8417 for <vdr@linuxtv.org>; Wed, 29 Feb 2012 13:44:55 +0200 (EET) Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A050874F0A5; Wed, 29 Feb 2012 13:44:55 +0200 Received: from kende.fi (a91-155-177-248.elisa-laajakaista.fi [91.155.177.248]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id 43A79E51A2 for <vdr@linuxtv.org>; Wed, 29 Feb 2012 13:44:53 +0200 (EET) Received: by kende.fi (Postfix, from userid 1000) id 1762E60074; Wed, 29 Feb 2012 13:44:53 +0200 (EET) Date: Wed, 29 Feb 2012 13:44:53 +0200 From: Kende <kende@kende.fi> To: VDR Mailing List <vdr@linuxtv.org> Message-ID: <20120229114452.GA10161@kende.fi> References: <E95B1617-0E97-4A1E-B15D-B52512068111@iki.fi> <4F4E0968.5020203@tvdr.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F4E0968.5020203@tvdr.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Antivirus: VAMS X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.2.29.112715 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' RCVD_FROM_IP_DATE 0.1, FROM_NAME_ONE_WORD 0.05, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1600_1699 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, ECARD_WORD 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CD 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __USER_AGENT 0' X-LSpam-Score: -1.1 (-) X-LSpam-Report: No, score=-1.1 required=5.0 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793 autolearn=no Subject: Re: [vdr] Patch suggestion: Force CAM reset before upcoming recording X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: VDR Mailing List <vdr@linuxtv.org> List-Id: VDR Mailing List <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/options/vdr>, <mailto:vdr-request@linuxtv.org?subject=unsubscribe> List-Archive: <http://www.linuxtv.org/pipermail/vdr> List-Post: <mailto:vdr@linuxtv.org> List-Help: <mailto:vdr-request@linuxtv.org?subject=help> List-Subscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=subscribe> X-List-Received-Date: Wed, 29 Feb 2012 11:44:57 -0000 Status: O X-Status: X-Keywords: X-UID: 25774 |
Commit Message
Kende
Feb. 29, 2012, 11:44 a.m. UTC
On Wed, Feb 29, 2012 at 12:18:00PM +0100, Klaus Schmidinger wrote: > On 29.02.2012 12:13, Heikki Manninen wrote: > >I have a number of different Conax CAM modules from different manufacturers and all of them disappear from VDR after a couple of days running. Hitting CAM reset on the CI menu will bring it back "online". Naturally all Conax channel recordings will fail silently as a result of this until the CAM has been brought back up. Switching to an encrypted channel just gives the standard "channel not available" message. > > > >This happens (for me) with Satelco DVB-C card with Satelco CI. From what I understand, this seems to be a common problem though I'm not sure whether it is limited to Satelco devices only. > > > >Would it be possible to force CAM reset on all CI slots when VDR is trying to start recording non-FTA channel? > > Wouldn't it be better to fix the actual problem and prevent > the CAM from "disappearing"? Hola, For me this seems to be driver issue, not VDRs fault. CI poll ioctl write seems to fail sometimes with my KNC One (saa7146) budget cards . Following patch seems to help in my case:
Comments
On 29.02.2012 12:44, Kende wrote: > On Wed, Feb 29, 2012 at 12:18:00PM +0100, Klaus Schmidinger wrote: >> On 29.02.2012 12:13, Heikki Manninen wrote: >>> I have a number of different Conax CAM modules from different manufacturers and all of them disappear from VDR after a couple of days running. Hitting CAM reset on the CI menu will bring it back "online". Naturally all Conax channel recordings will fail silently as a result of this until the CAM has been brought back up. Switching to an encrypted channel just gives the standard "channel not available" message. >>> >>> This happens (for me) with Satelco DVB-C card with Satelco CI. From what I understand, this seems to be a common problem though I'm not sure whether it is limited to Satelco devices only. >>> >>> Would it be possible to force CAM reset on all CI slots when VDR is trying to start recording non-FTA channel? >> >> Wouldn't it be better to fix the actual problem and prevent >> the CAM from "disappearing"? > > Hola, > > For me this seems to be driver issue, not VDRs fault. CI poll ioctl write seems to fail sometimes with my KNC One (saa7146) budget cards . Following patch seems to help in my case: > > --- dvbci.c 2007-01-04 14:49:10.000000000 +0200 > +++ ../vdr-1.7.21/dvbci.c 2011-10-12 10:49:45.689684447 +0300 > @@ -62,8 +62,10 @@ > void cDvbCiAdapter::Write(const uint8_t *Buffer, int Length) > { > if (Buffer&& Length> 0) { > - if (safe_write(fd, Buffer, Length) != Length) > + if (safe_write(fd, Buffer, Length) != Length) { > esyslog("ERROR: can't write to CI adapter on device %d: %m", device->De > viceNumber()); > + Reset(device->DeviceNumber()); > + } > } > } I tried this, but I'm afraid it doesn't help. The Reset() call was never triggered, even though my CAM went from normal operation to the "CAM ready" state, and not even an explicit reset via the Setup/CAM menu brought it to life again. Only after reloading the driver and restarting VDR did it work again. My theory is that switching channels is what's causing the problem. When I trigger an EPG scan, the problem typically occurs after a while. Maybe it's caused by tuning to channels that are no longer available, so the frontend times out. However, there's no reason why a frontend timeout should lead to a CAM freeze... Klaus
On Wed, Feb 29, 2012 at 7:39 AM, Klaus Schmidinger < Klaus.Schmidinger@tvdr.de> wrote: > On 29.02.2012 12:44, Kende wrote: > >> On Wed, Feb 29, 2012 at 12:18:00PM +0100, Klaus Schmidinger wrote: >> >>> On 29.02.2012 12:13, Heikki Manninen wrote: >>> >>>> I have a number of different Conax CAM modules from different >>>> manufacturers and all of them disappear from VDR after a couple of days >>>> running. Hitting CAM reset on the CI menu will bring it back "online". >>>> Naturally all Conax channel recordings will fail silently as a result of >>>> this until the CAM has been brought back up. Switching to an encrypted >>>> channel just gives the standard "channel not available" message. >>>> >>>> This happens (for me) with Satelco DVB-C card with Satelco CI. From >>>> what I understand, this seems to be a common problem though I'm not sure >>>> whether it is limited to Satelco devices only. >>>> >>>> Would it be possible to force CAM reset on all CI slots when VDR is >>>> trying to start recording non-FTA channel? >>>> >>> >>> Wouldn't it be better to fix the actual problem and prevent >>> the CAM from "disappearing"? >>> >> >> Hola, >> >> For me this seems to be driver issue, not VDRs fault. CI poll ioctl write >> seems to fail sometimes with my KNC One (saa7146) budget cards . Following >> patch seems to help in my case: >> >> --- dvbci.c 2007-01-04 14:49:10.000000000 +0200 >> +++ ../vdr-1.7.21/dvbci.c 2011-10-12 10:49:45.689684447 +0300 >> @@ -62,8 +62,10 @@ >> void cDvbCiAdapter::Write(const uint8_t *Buffer, int Length) >> { >> if (Buffer&& Length> 0) { >> >> - if (safe_write(fd, Buffer, Length) != Length) >> + if (safe_write(fd, Buffer, Length) != Length) { >> esyslog("ERROR: can't write to CI adapter on device %d: %m", >> device->De >> viceNumber()); >> + Reset(device->DeviceNumber()); >> + } >> } >> } >> > > I tried this, but I'm afraid it doesn't help. > The Reset() call was never triggered, even though my CAM went from normal > operation to the "CAM ready" state, and not even an explicit reset via > the Setup/CAM menu brought it to life again. Only after reloading the > driver and restarting VDR did it work again. > > My theory is that switching channels is what's causing the problem. > When I trigger an EPG scan, the problem typically occurs after a while. > Maybe it's caused by tuning to channels that are no longer available, > so the frontend times out. However, there's no reason why a frontend > timeout should lead to a CAM freeze... > > I've had this problem for years on my TT-2300-C-FF and TT-1501-C cards with Alphacrypt Multicam. Updating the CAM has no effect, same experience with multiple versions of VDR. Most of the time the CAM can be brought back to "Ready" by doing a CAM Reset from the VDR menus multiple times. On rare occasions the CAM will still be "Ready" but I still get "Channel not available", until I do a CAM reset a few times. I have a crude script which looks for "ERROR: can't write to CI adapter on device" in the syslog which notifies me so I can do the "CAM reset" (often multiple times) from the VDR menus. This appears to be either a bug in the dvb code - which has never been fixed. To be honest - it's nice to hear other people have had the problem!!
On 29-02-12 12:44, Kende wrote: > On Wed, Feb 29, 2012 at 12:18:00PM +0100, Klaus Schmidinger wrote: >> On 29.02.2012 12:13, Heikki Manninen wrote: >>> I have a number of different Conax CAM modules from different manufacturers and all of them disappear from VDR after a couple of days running. Hitting CAM reset on the CI menu will bring it back "online". Naturally all Conax channel recordings will fail silently as a result of this until the CAM has been brought back up. Switching to an encrypted channel just gives the standard "channel not available" message. >>> >>> This happens (for me) with Satelco DVB-C card with Satelco CI. From what I understand, this seems to be a common problem though I'm not sure whether it is limited to Satelco devices only. >>> >>> Would it be possible to force CAM reset on all CI slots when VDR is trying to start recording non-FTA channel? >> Wouldn't it be better to fix the actual problem and prevent >> the CAM from "disappearing"? > Hola, > > For me this seems to be driver issue, not VDRs fault. CI poll ioctl write seems to fail sometimes with my KNC One (saa7146) budget cards . Following patch seems to help in my case: Just a 'me too', My TT DVB-T 1500 with CI and conax cam also occasionally crashes. FTA remain working and a reset in the cam menu brings back the cam to life. Happens maybe once every few days, but my tv-box doesn't stay on for days, 3-8 hours a day max. > > --- dvbci.c 2007-01-04 14:49:10.000000000 +0200 > +++ ../vdr-1.7.21/dvbci.c 2011-10-12 10:49:45.689684447 +0300 > @@ -62,8 +62,10 @@ > void cDvbCiAdapter::Write(const uint8_t *Buffer, int Length) > { > if (Buffer&& Length> 0) { > - if (safe_write(fd, Buffer, Length) != Length) > + if (safe_write(fd, Buffer, Length) != Length) { > esyslog("ERROR: can't write to CI adapter on device %d: %m", device->De > viceNumber()); > + Reset(device->DeviceNumber()); > + } > } > } >
On 29-02-12 16:39, Klaus Schmidinger wrote: > On 29.02.2012 12:44, Kende wrote: >> On Wed, Feb 29, 2012 at 12:18:00PM +0100, Klaus Schmidinger wrote: >>> On 29.02.2012 12:13, Heikki Manninen wrote: >>>> I have a number of different Conax CAM modules from different >>>> manufacturers and all of them disappear from VDR after a couple of >>>> days running. Hitting CAM reset on the CI menu will bring it back >>>> "online". Naturally all Conax channel recordings will fail silently >>>> as a result of this until the CAM has been brought back up. >>>> Switching to an encrypted channel just gives the standard "channel >>>> not available" message. >>>> >>>> This happens (for me) with Satelco DVB-C card with Satelco CI. From >>>> what I understand, this seems to be a common problem though I'm not >>>> sure whether it is limited to Satelco devices only. >>>> >>>> Would it be possible to force CAM reset on all CI slots when VDR is >>>> trying to start recording non-FTA channel? >>> >>> Wouldn't it be better to fix the actual problem and prevent >>> the CAM from "disappearing"? >> >> Hola, >> >> For me this seems to be driver issue, not VDRs fault. CI poll ioctl >> write seems to fail sometimes with my KNC One (saa7146) budget cards >> . Following patch seems to help in my case: >> >> --- dvbci.c 2007-01-04 14:49:10.000000000 +0200 >> +++ ../vdr-1.7.21/dvbci.c 2011-10-12 10:49:45.689684447 +0300 >> @@ -62,8 +62,10 @@ >> void cDvbCiAdapter::Write(const uint8_t *Buffer, int Length) >> { >> if (Buffer&& Length> 0) { >> - if (safe_write(fd, Buffer, Length) != Length) >> + if (safe_write(fd, Buffer, Length) != Length) { >> esyslog("ERROR: can't write to CI adapter on device %d: >> %m", device->De >> viceNumber()); >> + Reset(device->DeviceNumber()); >> + } >> } >> } > > I tried this, but I'm afraid it doesn't help. > The Reset() call was never triggered, even though my CAM went from normal > operation to the "CAM ready" state, and not even an explicit reset via > the Setup/CAM menu brought it to life again. Only after reloading the > driver and restarting VDR did it work again. > > My theory is that switching channels is what's causing the problem. YES! I have so far only experienced this issue when switching channels. Staying on the same channel hasn't ever caused any problems. Changing channels causes various things, one being the cam needing to be reset. > When I trigger an EPG scan, the problem typically occurs after a while. > Maybe it's caused by tuning to channels that are no longer available, > so the frontend times out. However, there's no reason why a frontend > timeout should lead to a CAM freeze... > > Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On 29-02-12 17:52, Simon Baxter wrote: > > > On Wed, Feb 29, 2012 at 7:39 AM, Klaus Schmidinger > <Klaus.Schmidinger@tvdr.de <mailto:Klaus.Schmidinger@tvdr.de>> wrote: > > On 29.02.2012 12:44, Kende wrote: > > On Wed, Feb 29, 2012 at 12:18:00PM +0100, Klaus Schmidinger wrote: > > On 29.02.2012 12:13, Heikki Manninen wrote: > > I have a number of different Conax CAM modules from > different manufacturers and all of them disappear from > VDR after a couple of days running. Hitting CAM reset > on the CI menu will bring it back "online". Naturally > all Conax channel recordings will fail silently as a > result of this until the CAM has been brought back up. > Switching to an encrypted channel just gives the > standard "channel not available" message. > > This happens (for me) with Satelco DVB-C card with > Satelco CI. From what I understand, this seems to be a > common problem though I'm not sure whether it is > limited to Satelco devices only. > > Would it be possible to force CAM reset on all CI > slots when VDR is trying to start recording non-FTA > channel? > > > Wouldn't it be better to fix the actual problem and prevent > the CAM from "disappearing"? > > > Hola, > > For me this seems to be driver issue, not VDRs fault. CI poll > ioctl write seems to fail sometimes with my KNC One (saa7146) > budget cards . Following patch seems to help in my case: > > --- dvbci.c 2007-01-04 14:49:10.000000000 +0200 > +++ ../vdr-1.7.21/dvbci.c 2011-10-12 10:49:45.689684447 > +0300 > @@ -62,8 +62,10 @@ > void cDvbCiAdapter::Write(const uint8_t *Buffer, int Length) > { > if (Buffer&& Length> 0) { > > - if (safe_write(fd, Buffer, Length) != Length) > + if (safe_write(fd, Buffer, Length) != Length) { > esyslog("ERROR: can't write to CI adapter on device > %d: %m", device->De > viceNumber()); > + Reset(device->DeviceNumber()); > + } > } > } > > > I tried this, but I'm afraid it doesn't help. > The Reset() call was never triggered, even though my CAM went from > normal > operation to the "CAM ready" state, and not even an explicit reset via > the Setup/CAM menu brought it to life again. Only after reloading the > driver and restarting VDR did it work again. > > My theory is that switching channels is what's causing the problem. > When I trigger an EPG scan, the problem typically occurs after a > while. > Maybe it's caused by tuning to channels that are no longer available, > so the frontend times out. However, there's no reason why a frontend > timeout should lead to a CAM freeze... > > > I've had this problem for years on my TT-2300-C-FF and TT-1501-C cards > with Alphacrypt Multicam. Updating the CAM has no effect, same > experience with multiple versions of VDR. Most of the time the CAM > can be brought back to "Ready" by doing a CAM Reset from the VDR menus > multiple times. On rare occasions the CAM will still be "Ready" but I > still get "Channel not available", until I do a CAM reset a few times. > > I have a crude script which looks for "ERROR: can't write to CI > adapter on device" in the syslog which notifies me so I can do the > "CAM reset" (often multiple times) from the VDR menus. > > This appears to be either a bug in the dvb code - which has never been > fixed. To be honest - it's nice to hear other people have had the > problem!! Heh, I have several CAM problems with my TT-1500-T card using Conax cam. A little over a year ago, I needed to reset the cam a few times per hour! A kernel updated fixed that. So now, I still have: * Cam needs to be reset a couple of times per week. * When changing channels, sometimes an entire bouquet is 'CHannel not available', while other encrypted bouquet's work fine. Changing channels a few times remedies this, very annoying. * (This may not be cam related at all) sound quite often stutters (or silent at first, then slowly stutters right) when arriving at a channel. Takes a few seconds to get proper sound. Image tends to be fine. This however also happens on FTA channels, so may be not cam related. Just a 'me too' like post so it's not just you (and me) that have this problem with TT 15xx based cards. > > > > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
--- dvbci.c 2007-01-04 14:49:10.000000000 +0200 +++ ../vdr-1.7.21/dvbci.c 2011-10-12 10:49:45.689684447 +0300 @@ -62,8 +62,10 @@ void cDvbCiAdapter::Write(const uint8_t *Buffer, int Length) { if (Buffer && Length > 0) { - if (safe_write(fd, Buffer, Length) != Length) + if (safe_write(fd, Buffer, Length) != Length) { esyslog("ERROR: can't write to CI adapter on device %d: %m", device->De viceNumber()); + Reset(device->DeviceNumber()); + } } }