[mythtv] [Fwd: Re: Ticket #1049: DVBSignalMonitor needs to be able to monitor NIT/SDT]

Yeasah Pell yeasah at schwide.com
Sat Jun 10 20:09:51 UTC 2006


Rudy Zijlstra wrote:

> Accidentally not sent to list.
>
> ------------------------------------------------------------------------
>
> Subject:
> Re: [mythtv] Ticket #1049: DVBSignalMonitor needs to be able to 
> monitor NIT/SDT
> From:
> Rudy Zijlstra <mythtv at edsons.demon.nl>
> Date:
> Sat, 10 Jun 2006 21:24:34 +0200
> To:
> yeasah at schwide.com
>
> To:
> yeasah at schwide.com
>
>
> Yeasah Pell wrote:
>
>> Rudy Zijlstra wrote:
>>
>>> Yeasah Pell wrote:
>>>
>>>> Rudy Zijlstra wrote:
>>>>
>>>>  
>>>>
>>>>> Daniel Kristjansson wrote:
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>> On Wed, 2006-06-07 at 08:50 -0400, Mark Buechler wrote:
>>>>>>
>>>>>>
>>>>>>  
>>>>>>   
>>>>>>
>>>>>>> It was actually the dst based Twinhan cards I had the most trouble
>>>>>>> with. In correction, the Genpix 8psk module behaves like the 
>>>>>>> Nexus in
>>>>>>> that it works well with rotors and tuning.
>>>>>>> Once the new DiSEqC stuff goes in, within the new tuning process 
>>>>>>> after
>>>>>>> the rotor is estimated to be at its desired location, and the tuing
>>>>>>> code retunes, I think we should retune every few seconds until a 
>>>>>>> lock
>>>>>>> is gotten. Given how the dst based cards behave, if we don't retune
>>>>>>> several times then we're very highly dependant on rotor movement 
>>>>>>> speed
>>>>>>> estimates.          
>>>>>>
>>>>>>
>>>>>>
>>>>>> I can move the retune stuff to the signal monitor. This is much 
>>>>>> cleaner
>>>>>> than keeping the code in TVRec, and should allow us to only do the
>>>>>> retune when we don't have a lock on the proper multiplex.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  
>>>>>>     
>>>>>
>>>>>
>>>>>
>>>>> Please do. last night i upgraded to current SVN (10180). I could 
>>>>> no longer tune my budget DVB-S card. Reverted this morning to 
>>>>> 10131 and tuning was OK. When going to 10132 i loose tuning on the 
>>>>> card and can only watch services on the already tuned TS.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Rudy
>>>>>
>>>>>
>>>>>
>>>>>   
>>>>
>>>>
>>>>
>>>> Actually this is probably due to a bug in 
>>>> libs/libmythtv/dvbchannel.cpp that I fixed last night, which was 
>>>> unmasked recently by the intramultiplex changing support (which is 
>>>> great, thanks!)
>>>>
>>>> The problem is that dvbchannel.cpp gives a band of +/-500000 when 
>>>> considering if the two frequencies are equal, but DVB-S frequencies 
>>>> are in kHz, so it should be 500 for DVB-S or DVB-S2 -- otherwise it 
>>>> has a band of 500MHz when comparing frequencies, so it doesn't do a 
>>>> lot of tuning requests. :-) I have a proper fix in my diseqc/dvb-s 
>>>> patch, but if you want to workaround quickly, just change that one 
>>>> line's value from 500000 to 500 for now.
>>>>
>>>> I think there may be other areas where the kHz/Hz confusion comes 
>>>> in, I've definitely spotted places in the GUI anyway (when you're 
>>>> putting in the tuned scan parameters for example, as I recall the 
>>>> help text says Hz, but that's wrong for DVB-S)
>>>>
>>>> /y
>>>>  
>>>>
>>> I am not a very good code reader.... Which line should i change?
>>>
>>> I'll test and come back.
>>>
>>> Rudy
>>
>>
>>
>> Should be line 729 of the file libs/libmythtv/dvbchannel.cpp, it reads
>>
>> "    if (reset || !prev_tuning.equal(info.type, tuning, 500000))"
>>
>> and you'll want to change it to
>>
>> "    if (reset || !prev_tuning.equal(info.type, tuning, 500))"
>>
>>
>>
> SVN 10180 tunes again with this little patch. Can it be submitted?
>
> Thanks,
>
> Rudy
>
>------------------------------------------------------------------------
>
>_______________________________________________
>mythtv-dev mailing list
>mythtv-dev at mythtv.org
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>  
>
Well, that change is a DVB-S specific hack -- really it needs to be 
either 500 or 500000 depending on whether the card is DVB-S or 
DVB-somethingelse. I'm just now preparing my larger DVB-S/diseqc patch 
for general testing, which includes a correct fix for that issue, as 
well as many other enhancements for DVB-S.

If it looks like it's going to take a long time for the patch to get in, 
it'd make sense to apply a workaround in the meantime.



More information about the mythtv-dev mailing list