Oscam help - read local usb cardreader first

There are 16 replies in this Thread which was already clicked 3,020 times. The last Post () by green-bright-eyes.

  • Hi guys,


    I have read so many different tickets, and the wiki up and down, but I seem to have a huge problem with my setup of oscam.


    I have my localcard, which is on a smartgo reader in a raspberry pie. It works fine when its running as the only server - but I also have an external server.

    The problem is that my oscam chooses the external server 8 out of 10 times, even though I have played with load_balance settings etc. The ping is way better, though it doesnt make sense.

    There are so many settings in the oscam, but basicly I need to to tell my oscam to: if CAID = 0B00, then check local usb reader first, after that the external server inclusding 0B00. I just cant get this to work. I have tried to setup my local card as cccam as well, it makes same stunt.

    What am I doing wrong here?


    Code
    [global]
    disablelog                    = 1
    logfile                       = /dev/tty
    lb_mode                       = 1
    
    [cs378x]
    port                          = 12005
  • Padden Q

    Changed the title of the thread from “Oscam help” to “Oscam help - read local usb cardreader first”.
  • The problem is that my oscam chooses the external server

    Try adding this to [global] in oscam.conf

    preferlocalcards = 2

    prefer local cards

    I believe I have tried that some time ago.

    Then it tried my local cards as in the cardreaders on the mashine (upper/lower reader) - then it took sometiems seconds to unscramble a channel. When the device is 192.168.1.XXX - is that prefered as local, just because it is a local IP?)


    I'll just try again though.

  • What it does right now is that it chooses the external server, because ecm unstable time is 0,02s at start, and then after 2-3 seconds it changes to the usb cardreader, which has a ecm 0,305s stabel. So thats not prefering localcards, if local ip's are local cards. :)

  • In my opinion, the problem may be that you don't have a CAID set in the second reader, but only in the first reader. Then, Oscam tries to look for unknown CAIDs on all readers that don't specify which CAID will be there.

    http://www.streamboard.tv/wiki…/Config/oscam.server#caid


    Filter readers can also be added to "oscam.services" via preset channel packages (services), which you then apply to "oscam.server" in a reader as a filter, or in a "oscam.user" file as a filter for a user .

    http://www.streamboard.tv/wiki…/en/Config/oscam.services

    http://www.streamboard.tv/wiki…fig/oscam.server#services


    You can also turn on "lb_mode" filtering and control the reader availability depending on the weight ("lb_weight" on the readers), but first you need to learn something about this method.

    http://www.streamboard.tv/wiki…Config/oscam.conf#lb_mode

    http://www.streamboard.tv/wiki…ig/oscam.server#lb_weight (table of values divided by latency time)


    Basic "preferlocalcards = 2" filtering relies on the use of external cache (CacheEx) by the external card readers. I think it's ineffective. At the same time, they say that all local readers are the first to be used whenever possible. However, these must be initialized and properly set. The default value is "1". If you want to prefer local cards, you must set it to value "2".

    http://www.streamboard.tv/wiki…cam.conf#preferlocalcards

    I'm not sure that even a USB reader is considered to be local and whether it's like an external reader. Local readers are understood only with the "mouse" and "internal" protocols.

    If you want to force some CAIDs on the reader to be considered local, this is done with this parameter:

    http://www.streamboard.tv/wiki…g/oscam.server#localcards


    More about Oscam configuration:

    http://www.streamboard.tv/wiki/OSCam/en


    There are many possibilities for configuration. Unfortunately, there are often problems with configuration because Oscam really lets you set a lot of things. And then it happens that different Oscam functions are crossed, by user settings.

  • Is local IP = local card ? :) I am a dummy :)

    where do you have this parameter?

    My local card is on a local IP 192.168.1.15 - so when enable "Prefer local cards" in global settings, will it know then 192.168.1.15 is local and not a external IP like the external server it always starts picking up at.


    Right now its still picking the external server because of the low ecm time at around 0.02, and then after some time change to the usb reader with exm 0.350s.

    I just wish there was a straight forward funtion, to say - check this reader first, then reader2 - no matter ecm times.

  • If you want to force some CAIDs on the reader to be considered local, this is done with this parameter:

    http://www.streamboard.tv/wiki…g/oscam.server#localcards

    Thanks both.

    My problem is to force CAID to reader 1 is that my local card is 0B00 from my local country, but the same provider 0B00 on reader 2 has channels from other countries, that doesnt include on my local. If that wasnt the situation, I would just force 0B00 to reader 1 and all other CAID in reader 2.


    Could I force specific channels on 0B00 to go to a reader 1 and other 0B00 channel to reader2 with this code underneath? That would be great!


    Do you btw have some examples of this - I dont seem to figure out how to make a line :-)


    Code
    localcards = <CAID>[:<ident>[,ident]]...[;<CAID>[:<ident>[,ident]]...]....
  • Yes, as I mentioned before... the "oscam.services" file is determined for channel packages (list of channels). These group of channels, you can then use as a filter in any reader confguration ("oscam.server" file) or in any user ("oscam.user" file). Of course, you can specify certain CAIDs with certain channels (services). For more information, read the manual from the URL links I have listed.


    Incidentally, if a reader is designated as an external card reader (by external IP address) then it is not considered local. The term "local" refers to the hardware of the device (to the set top box) and not to the computer LAN. That is, the term "local card reader" means the same as the "internal card reader".


    In your case, if you are using an external card reader, so, it's not "local reder" ... and therefore "preferlocalcards = 2" it is meaningless to use.

  • I know this is an old thread but it's quite well done and the issue specifically treated.

    And it is an issue that's really driving me crazy. I have studied all the oscam wiki sections, although they oftem seem like the help of motherboard BIOS setups... almost telling us the obvious!

    I have tried

    First of all, in my case my two cards are in the two STB's slots: so, no USB external reader.

    Secondly, the strange is that only one of two cards has this problem, of not being preferred to external servers, the Tivusat one.


    My oscam.server is:



    I wonder if the responsible is, instead, the oscam.srvid...

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!