Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

PowerVU AFN only works when cacheex is on #9

Closed
littlesat opened this issue Dec 24, 2017 · 15 comments
Closed

PowerVU AFN only works when cacheex is on #9

littlesat opened this issue Dec 24, 2017 · 15 comments
Labels
bug Something isn't working fixed oscam related

Comments

@littlesat
Copy link

I suggest the title says enough...

@BarviX6
Copy link

BarviX6 commented Dec 24, 2017

gi 8120 Taapat-based Openpli5-image with Joeuser hardware-des-drivers-powervu
PowerVU AFN works without turning on the cacheex

@FCS001FCS
Copy link

FCS001FCS commented Dec 24, 2017

Just FYI for a complete situation:

I would be nice to have OSCAM-EMU not require the CachEx workaround.

VU+ Zero and DM720HD STBs OpenPli 6 & 4 respectively with OSCAM R11392-R764 on AFN 9E

Both require CacheEx to be set in oscam.server for Emulator to:

[reader]
label                         = emulator
protocol                      = emu
device                        = emulator
caid                          = 0E00
detect                        = cd
ident                         = 0E00:000000
group                         = 1
#
cacheex                       = 1
cacheex_maxhop                = 1
cacheex_allow_request         = 1
#
emmcache                      = 2,1,2,0
saveemm-unknown               = 1
saveemm-u                     = 1
saveemm-s                     = 1
saveemm-g                     = 1
emu_auproviders               = 0E00:000000

@oscam-emu
Copy link
Collaborator

oscam-emu commented Dec 24, 2017

From my experience only cacheex = 1 is enough.

Probably this is not an Emu's problem, but OSCam's problem.

@FCS001FCS
Copy link

@oscam-emu

Probably this is not an Emu's problem, but OSCam's problem.

I thought it was a timing issue with PowerVu and that it could be corrected in the EMU.

If I am wrong, has anyone (who understands the issue) asked to have it fixed in OSCAM?

@oscam-emu
Copy link
Collaborator

oscam-emu commented Dec 25, 2017

I don't think there's anyone that understands the issue. If there was, it would have been fixed. At least from our side.

Do you know how cacheex works? There's no information about it (and many other parts of oscam), so I can't tell what is being done different, when activated, that makes afn work. And I won't read the whole oscam code to find out...

@FCS001FCS
Copy link

Maybe the approach should be to take CachEx out of the process and see what the underlying issue is that does not allow the channels to clear and then decide if it can be fixed in EMU or OSCAM without the CachEx workaround. Just a thought.

Wishing all a Merry Christmas.

@oscam-emu
Copy link
Collaborator

oscam-emu commented Dec 25, 2017

Well, Emu is an oscam reader. It is sent an ecm request and its job is to respond with a cw, if possible.

In the case of afn, the cw is found and sent back to oscam. Oscam has to take the cw and sent it to the box to clear the channel.

It's been many times that we had to do modifications to the oscam's dvbapi part for powervu to work properly. Maybe this is the case here as well.

I am not very familiar with the internals of powervu or dvbapi though. Other users have contributed many fixes over time. I am sure if anyone of them knew what's wrong, we would have a fix already.

Merry Christmas to all!

@FCS001FCS
Copy link

Thanks for the explanation.

Maybe someone with the detailed understanding of dvbapi will take this on.

@oscam-emu
Copy link
Collaborator

oscam-emu commented Dec 26, 2017

FWIW, the cacheex doesn't actually do anything to help afn work. Cacheex is just cached cw exchanging between many oscam servers. Oscam caches all answered ecm requests in a local cache. And cacheex (cache exchange) is just a way to share all these ecm<->cw "pairs" among oscam servers. Nothing related to our case. Also, the cacheex feature actually has to be enabled on the user side to work.

Why it works if we add cacheex = 1?
Well, do this: Disable cacheex and use the "normal" reader settings, then zap very quickly between 2 afn channels. Voila... there's picture. But only while this first cached ecm lasts (10 seconds). Then you get black screen again.

In this case the oscam's local cache is used for the 1st ecm request (remember we zap very quickly, so the ecm is already decrypted and the cw is stored in the cache). For the next ecm requests the cache is not used, so we get a black screen.

So to summarize, if the ecm request is served from the cache, then afn works. If the ecm request is served directly from the emu reader, then afn doesn't work.

@linuxstv
Copy link

This seems not emu related problem. OpenPLi on Spark works just fine without cacheex = 1. It could be the driver on the enigma2 image itself.

@oscam-emu
Copy link
Collaborator

Thanks for the feedback.

@joeusercz
Copy link

Sorry, never looked at this before. To update, with my image, it is true that it works without cacheex for the simple case of viewing a channel, but if you try to record one channel and view another, usually you will get no video, only audio on the second channel. But, the cacheex trick works to fix this and does not affect the simple case of viewing just a single channel.

It is on my todo list to investigate (as I also need cacheex enabled for tvheadend) but I never seem to have the time...

@littlesat
Copy link
Author

We now need more than just cachex as AFN changes something in the code...

@caveman99
Copy link

AFN uses Hashmode 15 now, the EMM updates are still CacheMode 10 though. Does somebody have an algo or table for hashmode 15? ;-)

@oscam-emu oscam-emu transferred this issue from oscam-emu/oscam-emu Nov 7, 2018
@oscam-emu oscam-emu added bug Something isn't working help wanted Extra attention is needed oscam related labels Nov 7, 2018
@oscam-emu oscam-emu added oscam related fixed and removed help wanted Extra attention is needed oscam related labels Dec 15, 2018
@oscam-emu
Copy link
Collaborator

After almot a year I think it's time to close it.

Fixed commit oscam-emu/oscam-patched@654a5e0 in Emu r780.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working fixed oscam related
Projects
None yet
Development

No branches or pull requests

6 participants