oscam-emu / oscam-patched-old

Open Source Cam Emulator
GNU General Public License v3.0
96 stars 55 forks source link

Question about Hash #56

Closed nachopr43 closed 4 months ago

nachopr43 commented 5 years ago

Thanks for all the help. Why the channel hash seems to change sometimes after a re-scan ?

oscam-emu commented 5 years ago

The only reason I can think of is because the frequency is changed slightly (by 1 or 2 MHz).

nachopr43 commented 5 years ago

"Since the frequency factors into the hash would it be possible to add code to this effect ?

Calculate hash using current frequency. Check softcam for match. If no match, Calculate hash using current frequency -1. Check softcam for match. If no match, Calculate hash using current frequency +1. Check softcam for match. If no match, Calculate hash using current frequency -2 Check softcam for match. If no match, Calculate hash using current frequency +2. Check softcam for match.

This should make hash values more universal and "durable" such that only extreme LNB drift would cause the user to have to redo softcam hash entries."

oscam-emu commented 5 years ago

The frequency change is caused by the user, e.g if you set a slightly different frequency when scanning or use a different satellite.xml file. It's not the actual frequency that matters, so the LNB drifting does not matter.

Your suggestion (+/- 2 MHz) is used in BISS namespace hash. In feeds, it does make sense to look for adjacent frequencies because almost every time the scan parameters are entered by the user (they are not present in the satellite.xml).

nachopr43 commented 5 years ago

Thanks for quick answer. Unfortunately, there is no effort to maintain sat info here in North America. Satellite.xml info is often wrong, outdated or just missing. That's why Blind scanning is the preferred method and that's how we get hash mismatches with other users and ourselves after a rescan.