home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
Hardware
TV-Cards
Suggestion for USB/PCI-E DVB-C tuner?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1073132" data-attributes="member: 82144"><p>No problem, happy to explain. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>So, when we want a CAM to decrypt one or more channels we must send it CAPMT (conditional access program map table). Two of the important parameters in that PMT (aside from the program number AKA service ID and elementary stream details) are the list action and the command.</p><p>List action = only (for decrypting only one channel) or first, more, last, add and update (for decrypting multiple channels)</p><p>Command = ok descrambling (to decrypt), ok MMI, query (ask the CAM whether it can decrypt), or remove (stop decrypting)</p><p></p><p>You can see this in the TVE 3.5 code here:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/DvbConditionalAccess.cs#L37" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/DvbConditionalAccess.cs#L37</a></p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/DvbConditionalAccess.cs#L2232" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/DvbConditionalAccess.cs#L2232</a></p><p></p><p>The TvCardBase code chooses the right list management action:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TVLibrary/Implementations/TvCardBase.cs#L961" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TVLibrary/Implementations/TvCardBase.cs#L961</a></p><p></p><p>...and the TBS plugin passes the values through to the CAM:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/Plugins/CustomDevices/Turbosight/Turbosight.cs#L1411" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/Plugins/CustomDevices/Turbosight/Turbosight.cs#L1411</a></p><p></p><p>Ignore the fact that the TBS interface doesn't actually use "proper" format CA PMT. CA PMT matching the EN 50221 format will be constructed inside tbsCIapi.dll before sending it to the CAM. Other interfaces directly accept the EN 50221 CA PMT.</p><p></p><p>Anyhow, what I'm saying is that AFAIK the current patch always sends "CA PMT" with list management action "only". You can see this in the patch that was posted here:</p><p><a href="https://forum.team-mediaportal.com/threads/tbs-ci-cam-support-and-other-improvements.103276/page-47#post-1047027" target="_blank">https://forum.team-mediaportal.com/threads/tbs-ci-cam-support-and-other-improvements.103276/page-47#post-1047027</a></p><p>[code]</p><p> if (_turbosight != null)</p><p> {</p><p> return _turbosight.SendPmt(ListManagementType.Only, CommandIdType.Descrambling, context.PMT, context.PMTLength);</p><p> }[/code]</p><p></p><p>This means that strictly speaking the CAM will only decrypt one channel per tuner. Your CAM might not stop decrypting a channel until it runs out of capacity to decrypt a new channel, and that is why I say the behaviour you're seeing might be CAM dependent.</p><p></p><p>Does this make sense? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="mm1352000, post: 1073132, member: 82144"] No problem, happy to explain. :) So, when we want a CAM to decrypt one or more channels we must send it CAPMT (conditional access program map table). Two of the important parameters in that PMT (aside from the program number AKA service ID and elementary stream details) are the list action and the command. List action = only (for decrypting only one channel) or first, more, last, add and update (for decrypting multiple channels) Command = ok descrambling (to decrypt), ok MMI, query (ask the CAM whether it can decrypt), or remove (stop decrypting) You can see this in the TVE 3.5 code here: [url]https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/DvbConditionalAccess.cs#L37[/url] [url]https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/DvbConditionalAccess.cs#L2232[/url] The TvCardBase code chooses the right list management action: [url]https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/TVLibrary/Implementations/TvCardBase.cs#L961[/url] ...and the TBS plugin passes the values through to the CAM: [url]https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/TvEngine3/Mediaportal/TV/Server/Plugins/CustomDevices/Turbosight/Turbosight.cs#L1411[/url] Ignore the fact that the TBS interface doesn't actually use "proper" format CA PMT. CA PMT matching the EN 50221 format will be constructed inside tbsCIapi.dll before sending it to the CAM. Other interfaces directly accept the EN 50221 CA PMT. Anyhow, what I'm saying is that AFAIK the current patch always sends "CA PMT" with list management action "only". You can see this in the patch that was posted here: [url]https://forum.team-mediaportal.com/threads/tbs-ci-cam-support-and-other-improvements.103276/page-47#post-1047027[/url] [code] if (_turbosight != null) { return _turbosight.SendPmt(ListManagementType.Only, CommandIdType.Descrambling, context.PMT, context.PMTLength); }[/code] This means that strictly speaking the CAM will only decrypt one channel per tuner. Your CAM might not stop decrypting a channel until it runs out of capacity to decrypt a new channel, and that is why I say the behaviour you're seeing might be CAM dependent. Does this make sense? :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
TV-Cards
Suggestion for USB/PCI-E DVB-C tuner?
Contact us
RSS
Top
Bottom