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
TT-CT2-4400 Problems
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="aspik" data-source="post: 1117399" data-attributes="member: 72523"><p>I had time to do a bit more test and research. I've checked out the latest MP1 branch and found the <em>LockInOnSignal </em>method in the TvLibrary:</p><p>[code]///<summary></p><p> /// Checks if the tuner is locked in and a sginal is present</p><p> ///</summary> </p><p> public override void LockInOnSignal()</p><p> {</p><p> // UpdateSignalQuality(true);</p><p> bool isLocked = false;</p><p> </p><p> DateTime timeStart = DateTime.Now;</p><p> TimeSpan ts = timeStart - timeStart;</p><p> while (!isLocked && ts.TotalSeconds < _parameters.TimeOutTune)</p><p> {</p><p> foreach (IBDA_SignalStatistics stat in _tunerStatistics)</p><p> {[/code]</p><p>At the beginning of the method is a calling of <em>UpdateSignalQuality</em>, but it is commented. I thought maybe it would help, if before the channel get tuned, it can firstly check the signal quality... For a test I uncommented the method calling (plus the log writings in the <em>UpdateSignalQuality </em>method) and compiled the TvLibrary. Next I replaced the original TvLibrary.dll with my own compiled. Unfortunately this didn't helped, but the log includes now additionally entry’s:</p><p>[code][2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb:UpdateSignalQuality</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb:UpdateSignalQuality() count:2</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 get locked</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 isTunerLocked:False</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 get signalquality</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 signalQuality:100</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 signalStrength:65</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 get locked</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 isTunerLocked:False</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 get signalquality</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 signalQuality:100</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 signalStrength:65</p><p>[2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms</p><p>[2014-12-30 23:59:11,674] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms</p><p>[2014-12-30 23:59:11,694] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms</p><p>[2014-12-30 23:59:11,714] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms</p><p>[2014-12-30 23:59:11,734] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms</p><p>[2014-12-30 23:59:13,674] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal could not lock onto channel - no signal or bad signal[/code]</p><p>The result is the same, the tuner can't lock onto the channel... Maybe you can read more from those log entry's? </p><p></p><p>Additionally I've found that the BDA signal statistics property set:</p><p><a href="http://msdn.microsoft.com/en-us/library/windows/hardware/ff566557%28v=vs.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/windows/hardware/ff566557(v=vs.85).aspx</a></p><p>includes a property KSPROPERTY_BDA_SIGNAL_LOCK_TYPE in which are 4 lock types described:</p><p><a href="http://msdn.microsoft.com/en-us/library/windows/hardware/ff556526%28v=vs.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/windows/hardware/ff556526(v=vs.85).aspx</a></p><p>In the currently implementation of TvLibrary those lock types are not implemented:</p><p>[code]public interface IBDA_SignalStatistics</p><p> {</p><p> [PreserveSig]</p><p> int put_SignalStrength([In] int lDbStrength);</p><p></p><p> [PreserveSig]</p><p> int get_SignalStrength([Out] out int plDbStrength);</p><p></p><p> [PreserveSig]</p><p> int put_SignalQuality([In] int lPercentQuality);</p><p></p><p> [PreserveSig]</p><p> int get_SignalQuality([Out] out int plPercentQuality);</p><p></p><p> [PreserveSig]</p><p> int put_SignalPresent([In, MarshalAs(UnmanagedType.U1)] bool fPresent);</p><p></p><p> [PreserveSig]</p><p> int get_SignalPresent([Out, MarshalAs(UnmanagedType.U1)] out bool pfPresent);</p><p></p><p> [PreserveSig]</p><p> int put_SignalLocked([In, MarshalAs(UnmanagedType.U1)] bool fLocked);</p><p></p><p> [PreserveSig]</p><p> int get_SignalLocked([Out, MarshalAs(UnmanagedType.U1)] out bool pfLocked);</p><p></p><p> [PreserveSig]</p><p> int put_SampleTime([In] int lmsSampleTime);</p><p></p><p> [PreserveSig]</p><p> int get_SampleTime([Out] out int plmsSampleTime);[/code]</p><p>Would it be helpful, if the lock types would be implemented and in case the tuner can't tune onto a channel it could check in which lock type the tuner is? Or I'm completely on a wrong path...?</p></blockquote><p></p>
[QUOTE="aspik, post: 1117399, member: 72523"] I had time to do a bit more test and research. I've checked out the latest MP1 branch and found the [I]LockInOnSignal [/I]method in the TvLibrary: [code]///<summary> /// Checks if the tuner is locked in and a sginal is present ///</summary> public override void LockInOnSignal() { // UpdateSignalQuality(true); bool isLocked = false; DateTime timeStart = DateTime.Now; TimeSpan ts = timeStart - timeStart; while (!isLocked && ts.TotalSeconds < _parameters.TimeOutTune) { foreach (IBDA_SignalStatistics stat in _tunerStatistics) {[/code] At the beginning of the method is a calling of [I]UpdateSignalQuality[/I], but it is commented. I thought maybe it would help, if before the channel get tuned, it can firstly check the signal quality... For a test I uncommented the method calling (plus the log writings in the [I]UpdateSignalQuality [/I]method) and compiled the TvLibrary. Next I replaced the original TvLibrary.dll with my own compiled. Unfortunately this didn't helped, but the log includes now additionally entry’s: [code][2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb:UpdateSignalQuality [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb:UpdateSignalQuality() count:2 [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 get locked [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 isTunerLocked:False [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 get signalquality [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 signalQuality:100 [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #0 signalStrength:65 [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 get locked [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 isTunerLocked:False [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 get signalquality [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 signalQuality:100 [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: #1 signalStrength:65 [2014-12-30 23:59:11,654] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms [2014-12-30 23:59:11,674] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms [2014-12-30 23:59:11,694] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms [2014-12-30 23:59:11,714] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms [2014-12-30 23:59:11,734] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal waiting 20ms [2014-12-30 23:59:13,674] [Log ] [21 ] [INFO ] - dvb: LockInOnSignal could not lock onto channel - no signal or bad signal[/code] The result is the same, the tuner can't lock onto the channel... Maybe you can read more from those log entry's? Additionally I've found that the BDA signal statistics property set: [url]http://msdn.microsoft.com/en-us/library/windows/hardware/ff566557%28v=vs.85%29.aspx[/url] includes a property KSPROPERTY_BDA_SIGNAL_LOCK_TYPE in which are 4 lock types described: [url]http://msdn.microsoft.com/en-us/library/windows/hardware/ff556526%28v=vs.85%29.aspx[/url] In the currently implementation of TvLibrary those lock types are not implemented: [code]public interface IBDA_SignalStatistics { [PreserveSig] int put_SignalStrength([In] int lDbStrength); [PreserveSig] int get_SignalStrength([Out] out int plDbStrength); [PreserveSig] int put_SignalQuality([In] int lPercentQuality); [PreserveSig] int get_SignalQuality([Out] out int plPercentQuality); [PreserveSig] int put_SignalPresent([In, MarshalAs(UnmanagedType.U1)] bool fPresent); [PreserveSig] int get_SignalPresent([Out, MarshalAs(UnmanagedType.U1)] out bool pfPresent); [PreserveSig] int put_SignalLocked([In, MarshalAs(UnmanagedType.U1)] bool fLocked); [PreserveSig] int get_SignalLocked([Out, MarshalAs(UnmanagedType.U1)] out bool pfLocked); [PreserveSig] int put_SampleTime([In] int lmsSampleTime); [PreserveSig] int get_SampleTime([Out] out int plmsSampleTime);[/code] Would it be helpful, if the lock types would be implemented and in case the tuner can't tune onto a channel it could check in which lock type the tuner is? Or I'm completely on a wrong path...? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
TV-Cards
TT-CT2-4400 Problems
Contact us
RSS
Top
Bottom