* [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-01 12:18 Sébastien RAILLARD (COEXSI)
0 siblings, 0 replies; 8+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-10-01 12:18 UTC (permalink / raw)
To: o.endriss; +Cc: Linux Media Mailing List
Dear Oliver,
Ive done some tests with the CAM reader from Digital Devices based on Sony
CXD2099 chip and I noticed some issues with some CAM:
* SMIT CAM : working fine
* ASTON CAM : working fine, except that it's crashing quite regularly
* NEOTION CAM : no stream going out but access to the CAM menu is ok
When looking at the CXD2099 driver code, I noticed the CAM clock (fMCLKI) is
fixed at 9MHz using the 27MHz onboard oscillator and using the integer
divider set to 3 (as MCLKI_FREQ=2).
I was wondering if some CAM were not able to work correctly at such high
clock frequency.
So, I've tried to enable the NCO (numeric controlled oscillator) in order to
setup a lower frequency for the CAM clock, but I wasn't successful, it's
looking like the frequency must be around the 9MHz or I can't get any
stream.
Do you know a way to decrease this CAM clock frequency to do some testing?
Best regards,
Sebastien.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-03 13:18 Issa Gorissen
2011-10-03 13:31 ` Sébastien RAILLARD (COEXSI)
0 siblings, 1 reply; 8+ messages in thread
From: Issa Gorissen @ 2011-10-03 13:18 UTC (permalink / raw)
To: o.endriss, Sébastien RAILLARD ; +Cc: Linux Media Mailing List
> Dear Oliver,
>
> Ive done some tests with the CAM reader from Digital Devices based on
Sony
> CXD2099 chip and I noticed some issues with some CAM:
> * SMIT CAM : working fine
> * ASTON CAM : working fine, except that it's crashing quite regularly
> * NEOTION CAM : no stream going out but access to the CAM menu is ok
>
> When looking at the CXD2099 driver code, I noticed the CAM clock (fMCLKI)
is
> fixed at 9MHz using the 27MHz onboard oscillator and using the integer
> divider set to 3 (as MCLKI_FREQ=2).
>
> I was wondering if some CAM were not able to work correctly at such high
> clock frequency.
>
> So, I've tried to enable the NCO (numeric controlled oscillator) in order
to
> setup a lower frequency for the CAM clock, but I wasn't successful, it's
> looking like the frequency must be around the 9MHz or I can't get any
> stream.
>
> Do you know a way to decrease this CAM clock frequency to do some testing?
>
> Best regards,
> Sebastien.
Weird that the frequency would pose a problem for those CAMs. The CI spec [1]
explains that the minimum byte transfer clock period must be 111ns. This gives
us a frequency of ~9MHz.
Anyway, wouldn't it be wiser to base MCLKI on TICLK ?
--
Issa
[1] http://www.dvb.org/technology/standards/En50221.V1.pdf
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
2011-10-03 13:18 Issa Gorissen
@ 2011-10-03 13:31 ` Sébastien RAILLARD (COEXSI)
0 siblings, 0 replies; 8+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-10-03 13:31 UTC (permalink / raw)
To: 'Issa Gorissen', o.endriss; +Cc: 'Linux Media Mailing List'
> -----Original Message-----
> From: Issa Gorissen [mailto:flop.m@usa.net]
> Sent: lundi 3 octobre 2011 15:18
> To: o.endriss@gmx.de; Sébastien RAILLARD
> Cc: Linux Media Mailing List
> Subject: Re: [DVB] CXD2099 - Question about the CAM clock
>
> > Dear Oliver,
> >
> > Ive done some tests with the CAM reader from Digital Devices based on
> Sony
> > CXD2099 chip and I noticed some issues with some CAM:
> > * SMIT CAM : working fine
> > * ASTON CAM : working fine, except that it's crashing quite
> regularly
> > * NEOTION CAM : no stream going out but access to the CAM menu is ok
> >
> > When looking at the CXD2099 driver code, I noticed the CAM clock
> > (fMCLKI)
> is
> > fixed at 9MHz using the 27MHz onboard oscillator and using the integer
> > divider set to 3 (as MCLKI_FREQ=2).
> >
> > I was wondering if some CAM were not able to work correctly at such
> > high clock frequency.
> >
> > So, I've tried to enable the NCO (numeric controlled oscillator) in
> > order
> to
> > setup a lower frequency for the CAM clock, but I wasn't successful,
> > it's looking like the frequency must be around the 9MHz or I can't get
> > any stream.
> >
> > Do you know a way to decrease this CAM clock frequency to do some
> testing?
> >
> > Best regards,
> > Sebastien.
>
> Weird that the frequency would pose a problem for those CAMs. The CI
> spec [1] explains that the minimum byte transfer clock period must be
> 111ns. This gives us a frequency of ~9MHz.
>
You're totally right about the maximum clock frequency specified in the
norm, but I had confirmation from CAM manufacturers that their CAM may not
work correctly up to this maximum frequency.
Usually, the CAM clock is coming from the input TS stream and I don't think
there is for now a DVB-S2 transponder having a 72mbps bitrate (so a 9MHz for
parallel CAM clocking).
> Anyway, wouldn't it be wiser to base MCLKI on TICLK ?
>
I've tried to use mode C instead of mode D, and I have the same problem, so
I guess TICLK is around 72MHz.
It could be a good idea to use TICLK, but I don't know the value and if the
clock is constant or only active during data transmission.
Did you manage to enable and use the NCO of the CXD2099 (instead of the
integer divider) ?
> --
> Issa
>
> [1] http://www.dvb.org/technology/standards/En50221.V1.pdf
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-03 13:59 Issa Gorissen
2011-10-03 14:46 ` Sébastien RAILLARD (COEXSI)
0 siblings, 1 reply; 8+ messages in thread
From: Issa Gorissen @ 2011-10-03 13:59 UTC (permalink / raw)
To: o.endriss, Sébastien RAILLARD ; +Cc: 'Linux Media Mailing List'
> >
> > > Dear Oliver,
> > >
> > > Ive done some tests with the CAM reader from Digital Devices based on
> > Sony
> > > CXD2099 chip and I noticed some issues with some CAM:
> > > * SMIT CAM : working fine
> > > * ASTON CAM : working fine, except that it's crashing quite
> > regularly
> > > * NEOTION CAM : no stream going out but access to the CAM menu is ok
> > >
> > > When looking at the CXD2099 driver code, I noticed the CAM clock
> > > (fMCLKI)
> > is
> > > fixed at 9MHz using the 27MHz onboard oscillator and using the integer
> > > divider set to 3 (as MCLKI_FREQ=2).
> > >
> > > I was wondering if some CAM were not able to work correctly at such
> > > high clock frequency.
> > >
> > > So, I've tried to enable the NCO (numeric controlled oscillator) in
> > > order
> > to
> > > setup a lower frequency for the CAM clock, but I wasn't successful,
> > > it's looking like the frequency must be around the 9MHz or I can't get
> > > any stream.
> > >
> > > Do you know a way to decrease this CAM clock frequency to do some
> > testing?
> > >
> > > Best regards,
> > > Sebastien.
> >
> > Weird that the frequency would pose a problem for those CAMs. The CI
> > spec [1] explains that the minimum byte transfer clock period must be
> > 111ns. This gives us a frequency of ~9MHz.
> >
>
> You're totally right about the maximum clock frequency specified in the
> norm, but I had confirmation from CAM manufacturers that their CAM may not
> work correctly up to this maximum frequency.
>
> Usually, the CAM clock is coming from the input TS stream and I don't think
> there is for now a DVB-S2 transponder having a 72mbps bitrate (so a 9MHz
for
> parallel CAM clocking).
>
> > Anyway, wouldn't it be wiser to base MCLKI on TICLK ?
> >
>
> I've tried to use mode C instead of mode D, and I have the same problem, so
> I guess TICLK is around 72MHz.
>
> It could be a good idea to use TICLK, but I don't know the value and if the
> clock is constant or only active during data transmission.
>
>
> Did you manage to enable and use the NCO of the CXD2099 (instead of the
> integer divider) ?
No, but if your output to the CAM is slower than what comes from the ngene
chip, you will lose bytes, no ?
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
2011-10-03 13:59 [DVB] CXD2099 - Question about the CAM clock Issa Gorissen
@ 2011-10-03 14:46 ` Sébastien RAILLARD (COEXSI)
2011-10-03 22:00 ` Sébastien RAILLARD (COEXSI)
0 siblings, 1 reply; 8+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-10-03 14:46 UTC (permalink / raw)
To: 'Issa Gorissen', o.endriss; +Cc: 'Linux Media Mailing List'
> -----Original Message-----
> From: Issa Gorissen [mailto:flop.m@usa.net]
> Sent: lundi 3 octobre 2011 15:59
> To: o.endriss@gmx.de; Sébastien RAILLARD
> Cc: 'Linux Media Mailing List'
> Subject: RE: [DVB] CXD2099 - Question about the CAM clock
>
> > >
> > > > Dear Oliver,
> > > >
> > > > Ive done some tests with the CAM reader from Digital Devices
> > > > based on
> > > Sony
> > > > CXD2099 chip and I noticed some issues with some CAM:
> > > > * SMIT CAM : working fine
> > > > * ASTON CAM : working fine, except that it's crashing quite
> > > regularly
> > > > * NEOTION CAM : no stream going out but access to the CAM menu is
> > > > ok
> > > >
> > > > When looking at the CXD2099 driver code, I noticed the CAM clock
> > > > (fMCLKI)
> > > is
> > > > fixed at 9MHz using the 27MHz onboard oscillator and using the
> > > > integer divider set to 3 (as MCLKI_FREQ=2).
> > > >
> > > > I was wondering if some CAM were not able to work correctly at
> > > > such high clock frequency.
> > > >
> > > > So, I've tried to enable the NCO (numeric controlled oscillator)
> > > > in order
> > > to
> > > > setup a lower frequency for the CAM clock, but I wasn't
> > > > successful, it's looking like the frequency must be around the
> > > > 9MHz or I can't get any stream.
> > > >
> > > > Do you know a way to decrease this CAM clock frequency to do some
> > > testing?
> > > >
> > > > Best regards,
> > > > Sebastien.
> > >
> > > Weird that the frequency would pose a problem for those CAMs. The CI
> > > spec [1] explains that the minimum byte transfer clock period must
> > > be 111ns. This gives us a frequency of ~9MHz.
> > >
> >
> > You're totally right about the maximum clock frequency specified in
> > the norm, but I had confirmation from CAM manufacturers that their CAM
> > may not work correctly up to this maximum frequency.
> >
> > Usually, the CAM clock is coming from the input TS stream and I don't
> > think there is for now a DVB-S2 transponder having a 72mbps bitrate
> > (so a 9MHz
> for
> > parallel CAM clocking).
> >
> > > Anyway, wouldn't it be wiser to base MCLKI on TICLK ?
> > >
> >
> > I've tried to use mode C instead of mode D, and I have the same
> > problem, so I guess TICLK is around 72MHz.
> >
> > It could be a good idea to use TICLK, but I don't know the value and
> > if the clock is constant or only active during data transmission.
> >
> >
> > Did you manage to enable and use the NCO of the CXD2099 (instead of
> > the integer divider) ?
>
> No, but if your output to the CAM is slower than what comes from the
> ngene chip, you will lose bytes, no ?
The real bandwidth of my transponder is 62mbps, so I've room to decrease the
CAM clock.
I did more tests with the NCO, and I've strange results:
* Using MCLKI=0x5553 => fMCLKI= 8,99903 => Not working, a lot of TS errors
* Using MCLKI=0x5554 => fMCLKI= 8,99945 => Working fine
* Using MCLKI=0x5555 => fMCLKI= 8,99986 => Not working, a lot of TS errors
It's strange that changing very slightly the clock make so much errors!
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
2011-10-03 14:46 ` Sébastien RAILLARD (COEXSI)
@ 2011-10-03 22:00 ` Sébastien RAILLARD (COEXSI)
0 siblings, 0 replies; 8+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-10-03 22:00 UTC (permalink / raw)
To: 'Issa Gorissen', o.endriss; +Cc: 'Linux Media Mailing List'
> -----Original Message-----
> From: linux-media-owner@vger.kernel.org [mailto:linux-media-
> owner@vger.kernel.org] On Behalf Of Sébastien RAILLARD (COEXSI)
> Sent: lundi 3 octobre 2011 16:46
> To: 'Issa Gorissen'; o.endriss@gmx.de
> Cc: 'Linux Media Mailing List'
> Subject: RE: [DVB] CXD2099 - Question about the CAM clock
>
>
>
> > -----Original Message-----
> > From: Issa Gorissen [mailto:flop.m@usa.net]
> > Sent: lundi 3 octobre 2011 15:59
> > To: o.endriss@gmx.de; Sébastien RAILLARD
> > Cc: 'Linux Media Mailing List'
> > Subject: RE: [DVB] CXD2099 - Question about the CAM clock
> >
> > > >
> > > > > Dear Oliver,
> > > > >
> > > > > Ive done some tests with the CAM reader from Digital Devices
> > > > > based on
> > > > Sony
> > > > > CXD2099 chip and I noticed some issues with some CAM:
> > > > > * SMIT CAM : working fine
> > > > > * ASTON CAM : working fine, except that it's crashing quite
> > > > regularly
> > > > > * NEOTION CAM : no stream going out but access to the CAM menu
> > > > > is ok
> > > > >
> > > > > When looking at the CXD2099 driver code, I noticed the CAM clock
> > > > > (fMCLKI)
> > > > is
> > > > > fixed at 9MHz using the 27MHz onboard oscillator and using the
> > > > > integer divider set to 3 (as MCLKI_FREQ=2).
> > > > >
> > > > > I was wondering if some CAM were not able to work correctly at
> > > > > such high clock frequency.
> > > > >
> > > > > So, I've tried to enable the NCO (numeric controlled oscillator)
> > > > > in order
> > > > to
> > > > > setup a lower frequency for the CAM clock, but I wasn't
> > > > > successful, it's looking like the frequency must be around the
> > > > > 9MHz or I can't get any stream.
> > > > >
> > > > > Do you know a way to decrease this CAM clock frequency to do
> > > > > some
> > > > testing?
> > > > >
> > > > > Best regards,
> > > > > Sebastien.
> > > >
> > > > Weird that the frequency would pose a problem for those CAMs. The
> > > > CI spec [1] explains that the minimum byte transfer clock period
> > > > must be 111ns. This gives us a frequency of ~9MHz.
> > > >
> > >
> > > You're totally right about the maximum clock frequency specified in
> > > the norm, but I had confirmation from CAM manufacturers that their
> > > CAM may not work correctly up to this maximum frequency.
> > >
> > > Usually, the CAM clock is coming from the input TS stream and I
> > > don't think there is for now a DVB-S2 transponder having a 72mbps
> > > bitrate (so a 9MHz
> > for
> > > parallel CAM clocking).
> > >
> > > > Anyway, wouldn't it be wiser to base MCLKI on TICLK ?
> > > >
> > >
> > > I've tried to use mode C instead of mode D, and I have the same
> > > problem, so I guess TICLK is around 72MHz.
> > >
> > > It could be a good idea to use TICLK, but I don't know the value and
> > > if the clock is constant or only active during data transmission.
> > >
> > >
> > > Did you manage to enable and use the NCO of the CXD2099 (instead of
> > > the integer divider) ?
> >
> > No, but if your output to the CAM is slower than what comes from the
> > ngene chip, you will lose bytes, no ?
>
> The real bandwidth of my transponder is 62mbps, so I've room to decrease
> the CAM clock.
>
> I did more tests with the NCO, and I've strange results:
> * Using MCLKI=0x5553 => fMCLKI= 8,99903 => Not working, a lot of TS
> errors
> * Using MCLKI=0x5554 => fMCLKI= 8,99945 => Working fine
> * Using MCLKI=0x5555 => fMCLKI= 8,99986 => Not working, a lot of TS
> errors
>
> It's strange that changing very slightly the clock make so much errors!
>
I managed to find a series of values that are working correctly for MCLKI:
MCLKI = 0x5554 - i * 0x0c
In my case I can go down to 0x5338 before having TS errors.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
@ 2011-10-04 11:56 Issa Gorissen
2011-10-06 20:29 ` Sébastien RAILLARD (COEXSI)
0 siblings, 1 reply; 8+ messages in thread
From: Issa Gorissen @ 2011-10-04 11:56 UTC (permalink / raw)
To: o.endriss, sr; +Cc: 'Linux Media Mailing List'
>
> I managed to find a series of values that are working correctly for MCLKI:
>
> MCLKI = 0x5554 - i * 0x0c
>
> In my case I can go down to 0x5338 before having TS errors.
>
>From CXD2099 specs
--
It is a requirement for the frequency of MCLKI to be set higher than the input
data rate. ie 8
times TICLK. If this condition is not met then the internal buffer will
overflow and the register
TSIN_FIFO_OVFL is set to 1. This register should be read at regular intervals
to ensure reliable
operation.
--
Watch out that you're not slowly overflowing the internal buffer if MCLKI is
not fast enough...
Are you working with the ddbridge ?
--
Issa
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [DVB] CXD2099 - Question about the CAM clock
2011-10-04 11:56 Issa Gorissen
@ 2011-10-06 20:29 ` Sébastien RAILLARD (COEXSI)
0 siblings, 0 replies; 8+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-10-06 20:29 UTC (permalink / raw)
To: 'Issa Gorissen', o.endriss; +Cc: 'Linux Media Mailing List'
> -----Original Message-----
> From: Issa Gorissen [mailto:flop.m@usa.net]
> Sent: mardi 4 octobre 2011 13:57
> To: o.endriss@gmx.de; sr@coexsi.fr
> Cc: 'Linux Media Mailing List'
> Subject: RE: [DVB] CXD2099 - Question about the CAM clock
>
> >
> > I managed to find a series of values that are working correctly for
> MCLKI:
> >
> > MCLKI = 0x5554 - i * 0x0c
> >
> > In my case I can go down to 0x5338 before having TS errors.
> >
>
> From CXD2099 specs
> --
> It is a requirement for the frequency of MCLKI to be set higher than the
> input data rate. ie 8 times TICLK. If this condition is not met then the
> internal buffer will overflow and the register TSIN_FIFO_OVFL is set to
> 1. This register should be read at regular intervals to ensure reliable
> operation.
> --
>
> Watch out that you're not slowly overflowing the internal buffer if
> MCLKI is not fast enough...
That's the problem, if the input clock can't be slowed down...
I didn't find any parameters that allows for decreasing the clock.
>
> Are you working with the ddbridge ?
Yes, I'm working with the ddbridge (lattice)
>
> --
> Issa
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-10-06 20:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 13:59 [DVB] CXD2099 - Question about the CAM clock Issa Gorissen
2011-10-03 14:46 ` Sébastien RAILLARD (COEXSI)
2011-10-03 22:00 ` Sébastien RAILLARD (COEXSI)
-- strict thread matches above, loose matches on Subject: below --
2011-10-04 11:56 Issa Gorissen
2011-10-06 20:29 ` Sébastien RAILLARD (COEXSI)
2011-10-03 13:18 Issa Gorissen
2011-10-03 13:31 ` Sébastien RAILLARD (COEXSI)
2011-10-01 12:18 Sébastien RAILLARD (COEXSI)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox