enternoescape / opendct

Open source digital cable tuner for SageTV.
Apache License 2.0
9 stars 7 forks source link

Need to implement us-hrc and us-irc channel maps. #352

Open CraziFuzzy opened 6 years ago

CraziFuzzy commented 6 years ago

Need to implement us-hrc and us-irc channel maps. most cable operators in the US are typically on us-hrc (done to shift away from broadcast frequencies to minimize interference on the cables).

CraziFuzzy commented 6 years ago

I wonder if we should maybe autodetect this. If you run an hdhomerun_config XXXXXXXX scan /tuner?, and are set to any of the cable channelmaps, it will proceed as follows. This would be a bit more coding, but would be much more user friendly, since most people don't even know there is a difference, so wouldn't know to set anything other than 'cable'.

Starting at the top of the map, it will try to tune us-irc:158, us-cable:158, and if no lock, will then try us-hrc-158. It will continue down the map checking irc, cable, hrc until it locks onto it's first channel. Once it does, it will use that channelmap the rest of the scan, as shown below:

` SCANNING: 999000000 (us-irc:158, us-cable:158)

SCANNING: 997750000 (us-hrc:158) snip SCANNING: 847750000 (us-hrc:133) LOCK: qam256 (ss=100 snq=100 seq=100) TSID: 0x17E8 PROGRAM 312: 0 (encrypted) PROGRAM 313: 0 (encrypted) PROGRAM 314: 0 (encrypted) PROGRAM 315: 0 (encrypted) SCANNING: 841750000 (us-hrc:132) LOCK: qam256 (ss=100 snq=100 seq=100) TSID: 0x17E7 PROGRAM 1050: 0 (encrypted) PROGRAM 1051: 0 (encrypted) PROGRAM 1053: 0 (encrypted) SCANNING: 835750000 (us-hrc:131) LOCK: qam256 (ss=100 snq=100 seq=100)`

enternoescape commented 6 years ago

That only works with their command line tool. Built in scanning is only on the newest devices and it uses all of the tuners. I don't want to implement a feature that will do something unexpected like that.

enternoescape commented 6 years ago

We can just check both us-cable and us-hrc until we get a lock on one of them is acquired if that's the spirit of what you're suggesting. It might not be that bad coding-wise. I was unaware this was a problem for anyone. With the newest HDHomeRun devices this shouldn't be even a remote problem since we can just use the virtual channels from a channel scan.

CraziFuzzy commented 6 years ago

I've already implemented the ability for it to use us-hrc or us-irc if the tuner?/channelmap is set to that, and it works fine in my testing in openDCT. I agree, it would be nice to be able to autodetect, I just wanted to confirm that the frequency mapping was the problem bcjenkins was having before even investigating the retry til lock method.

enternoescape commented 6 years ago

Gotcha.