can’t decode Digitenne whit original card (OSCAM 1.2,ubuntu 14.04, tvheadend,smargo)

There are 2 replies in this Thread which was already clicked 1,605 times. The last Post () by Adrian1980.

  • Problem:


    can’t decode Digitenne whit original card (OSCAM 1.2, ubuntu 14.04, tvheadend,smargo v2+, AF9015 dvb-t tuner).




    Set up:
    (OSCAM 1.2, ubuntu 14.04, tvheadend,smargo v2+, AF9015 dvb-t tuner)


    On the server you have the dvb-t stick and the card reader attached via usb,On this machine i have installed tvheadend and oscam, i can watch over the LAN via VLC player all the free dvb stuff but i can’t decode whit my original Digitenne card, the other encrypted streams.
    I try whit the DVB-api and whit newcamd both can communicate whit the card,update the EMM etc, and in the web interface of oscam the card is OK.



    Os:
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.1 LTS
    Release: 14.04
    Codename: trusty



    Hardware:
    Bus 001 Device 002: ID 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T USB2.0 stick
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Note: The Card reader is a Smargo v2+


    the card is there according to the logs post a part of the log file:


    (So i can read and write there this is done via newcamd protocol see below)


    c mysmartreader [conax] EMM: caid 0B00 has no provider
    2014/12/16 17:45:09 8D70F88 c mysmartreader [conax] EMM: Entered conax_get_emm_type ep->emm[2]=b4
    2014/12/16 17:45:09 8D70F88 c mysmartreader [conax] EMM: SHARED, ep->hexserial = ############
    2014/12/16 17:45:09 8D70F88 c mysmartreader [conax] EMM: emmtype shared. Reader serial ################.
    2014/12/16 17:45:09 8D70F88 c mysmartreader [conax] EMM: emm UA/SA: ################.
    2014/12/16 17:45:09 8D70F88 c mysmartreader [conax] EMM: emm found in cache: count 3 rewrite 0
    2014/12/16 17:45:09 8D70F88 c mysmartreader [conax] EMM: emm is being sent to reader
    2014/12/16 17:45:09 8D70F88 c start reader thread action 6
    2014/12/16 17:45:09 8D70F88 c send 15 bytes to client
    2014/12/16 17:45:09 8D70F88 0000000000000000000000000000000000
    2014/12/16 17:45:09 8D62B28 r data from add_job action=6 client r mysmartreader
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] local emm reader
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] write to cardreader
    2014/12/16 17:45:09 8D62B28 000000000000000000000000000000000000000000


    offuscated
    2014/12/16 17:45:09 8D62B28
    2014/12/16 17:45:09 8D62B28 0000000000000000000000000000000000000000000000
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Setting timeout to 12 ETU (835 us)
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Transmit size 5 bytes, expected len 1 bytes, delay 0 us, timeout=835 us
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Transmit:
    2014/12/16 17:45:09 8D62B28 ###################
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IO: Write timeout 835 us, write delay 0 us, to send 5 char(s), chunksize 5 char(s)
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IO: Sending:
    2014/12/16 17:45:09 8D62B28 ##################
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Transmit succesful
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Setting timeout to 9600 ETU (668764 us)
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Receive size 1 bytes, delay 0 us, timeout=668764 us
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IO: Read timeout 668764 us, read delay 0 us, to read 1 char(s), chunksize 1 char(s)
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IO: Receiving:
    2014/12/16 17:45:09 8D62B28 6E
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Receive succesful
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] TRACE: SW1: 60
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Setting timeout to 9600 ETU (668764 us)
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Receive size 1 bytes, delay 0 us, timeout=668764 us
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IO: Read timeout 668764 us, read delay 0 us, to read 1 char(s), chunksize 1 char(s)
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IO: Receiving:
    2014/12/16 17:45:09 8D62B28 00
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] IFD: Receive succesful
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] TRACE: SW2: 00
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] Answer from cardreader:
    2014/12/16 17:45:09 8D62B28 6E 00
    2014/12/16 17:45:09 8D62B28 r mysmartreader [conax] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
    2014/12/16 17:45:39 0 --- Skipped 29 duplicated log lines ---
    2014/12/16 17:45:39 8D70F88 c [OSCAM-WORK] new event 1 occurred on fd 13 after 29699 ms inactivity
    2014/12/16 17:45:39 8D70F88 c nmr(): len=2, errno=0
    2014/12/16 17:45:39 8D70F88 c received 5 bytes from client
    2014/12/16 17:45:39 8D70F88 00 00 FD 00 00
    2014/12/16 17:45:39 8D70F88 c newcamd: got cmd 253
    2014/12/16 17:45:39 8D70F88 c send keepalive to client fd=13
    2014/12/16 17:45:39 8D70F88 c send 15 bytes to client
    2014/12/16 17:45:39 8D70F88


    However I try to tune in to a program i get that




    mysmartreader [conax] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
    2014/12/16 17:44:33 0 --- Skipped 5 duplicated log lines ---
    2014/12/16 17:44:33 8D70F88 c [OSCAM-WORK] new event 1 occurred on fd 13 after 15042 ms inactivity
    2014/12/16 17:44:33 8D70F88 c nmr(): len=2, errno=0
    2014/12/16 17:44:33 8D70F88 c received 73 bytes from client
    2014/12/16 17:44:33 8D70F88



    2014/12/16 17:44:33 8D70F88 c newcamd: got cmd 128
    2014/12/16 17:44:33 8D70F88 c ncd_process_ecm: er->msgid=313 len=73 ecmlen=71
    2014/12/16 17:44:33 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 002A} [get_cw] NEW REQUEST!
    2014/12/16 17:44:33 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 002A} [send_dcw] rc 8 from reader -
    2014/12/16 17:44:33 8D70F88 c Client user2 csphash 00000000 cw 00000000000000000000000000000000 rc 8 0B00&000000/0000/002A/47:00000000000000000000000000000000
    2014/12/16 17:44:33 8D70F88 c ncd_send_dcw: er->msgid=313, cl_msgid=313, 80
    2014/12/16 17:44:33 8D70F88 c send 15 bytes to client
    2014/12/16 17:44:33 8D70F88 00 ## ## ## 00 00 00 00 00 00 00 00 80 00 00
    2014/12/16 17:44:33 8D70F88 c user2 (0B00&000000/0000/002A/47:00000000000000000000000000000000): invalid (0 ms) - FOX (invalid SID)
    2014/12/16 17:44:33 8D70F88 c cw:
    2014/12/16 17:44:33 8D70F88 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    2014/12/16 17:44:33 8D62B28 r mysmartreader [conax] cardreader_do_checkhealth: reader->card_status = 2, ret = 1

    or I do get this:


    2014/12/16 17:52:10 8D70F88 c newcamd: got cmd 253
    2014/12/16 17:52:10 8D70F88 c send keepalive to client fd=13
    2014/12/16 17:52:10 8D70F88 c send 15 bytes to client
    2014/12/16 17:52:10 8D70F88 00 0D 01 4C 00 00 00 00 00 00 00 00 FD 00 00
    2014/12/16 17:52:10 8D62B28 r mysmartreader [conax] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
    2014/12/16 17:52:31 0 --- Skipped 20 duplicated log lines ---
    2014/12/16 17:52:31 8D70F88 c [OSCAM-WORK] new event 1 occurred on fd 13 after 21674 ms inactivity
    2014/12/16 17:52:31 8D70F88 c nmr(): len=2, errno=0
    2014/12/16 17:52:31 8D70F88 c received 73 bytes from client
    2014/12/16 17:52:31 8D70F88
    2014/12/16 17:52:31 8D70F88 c newcamd: got cmd 128
    2014/12/16 17:52:31 8D70F88 c ncd_process_ecm: er->msgid=333 len=73 ecmlen=71
    2014/12/16 17:52:31 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 001F} [get_cw] NEW REQUEST!
    2014/12/16 17:52:31 8D70F88 c trying reader 'mysmartreader' filter 0B00:000000
    2014/12/16 17:52:31 8D70F88 c 0B00:000000 allowed by reader 'mysmartreader' filter 0B00:000000
    2014/12/16 17:52:31 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 001F} NO local readers, set preferlocalcards = 0
    2014/12/16 17:52:31 8D70F88 c [GET_CW] wait_time 0 caid 0B00 prov 000000 srvid 001F rc 100 cacheex cl mode 1 ex1rdr 0
    2014/12/16 17:52:31 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 001F} [get_cw] wait_time 0 - client cacheex mode 1, reader avail for ecm 1, hitcache 0, preferlocalcards 0
    2014/12/16 17:52:31 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 001F} [get_cw] NO Readers and NO wait_time... not_found!
    2014/12/16 17:52:31 8D70F88 c {client user2, caid 0B00, prid 000000, srvid 001F} [send_dcw] rc 4 from reader -
    2014/12/16 17:52:31 8D70F88 c Client user2 csphash 06828A98 cw 00000000000000000000000000000000 rc 4 0B00&000000/0000/001F/47:9177FB21B8F5AFBF575F02AAB46CD39C
    2014/12/16 17:52:31 8D70F88 c ncd_send_dcw: er->msgid=333, cl_msgid=333, 80
    2014/12/16 17:52:31 8D70F88 c send 15 bytes to client
    2014/12/16 17:52:31 8D70F88 00 ## ## ## 00 00 00 00 00 00 00 00 80 00 00
    2014/12/16 17:52:31 8D70F88 c user2 (0B00&000000/0000/001F/47:9177FB21B8F5AFBF575F02AAB46CD39C): rejected group (0 ms) (no matching reader)
    2014/12/16 17:52:31 8D70F88 c cw:
    2014/12/16 17:52:31 8D70F88 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    2014/12/16 17:52:31 8D62B28 r mysmartreader [conax] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
    2014/12/16 17:52:45 0 --- Skipped 13 duplicated log lines ---
    2014/12/16 17:52:45 8D70F88 c [OSCAM-WORK] new event 1 occurred on fd 13 after 14238 ms inactivity



    It appears that the somehow i don’t get the reader to really decode the dvb stream any suggestion how to fix that?


    To OSCAM
    Version : 1.20-unstable_svn SVN r10081


    oscam.server
    —————————————————————
    [reader]
    label = mysmartreader
    protocol = smargo
    device = /dev/ttyUSB0
    services = services1
    smargopatch = 1
    caid = 0B00
    ecmwhitelist = 0B00:47
    detect = cts
    mhz = 500
    cardmhz = 500
    ident = 0B00:000000
    group = 1
    ———————[end]——————


    oscam.conf
    ————————[start]———————
    [global]
    logfile = /var/log/oscam/oscam.log
    pidfile = /var/run/oscam.pid
    nice = -1
    maxlogsize = 11000
    preferlocalcards = 2
    block_same_ip = 0
    block_same_name = 0
    usrfile = /var/log/oscam/oscamuser.log
    cwlogdir = /var/log/oscam/cw
    emmlogdir = /var/log/oscam/emm.log


    [cache]


    [newcamd]
    #port = 15050@0B00:00E030
    port = 15050@0B00:000000
    allowed = 0.0.0.0-255.255.255.255
    key = 000102030405060708090A0B0C0D
    keepalive = 1
    mgclient = 1


    [dvbapi]
    enabled = 1
    pmt_mode = 4
    request_mode = 1
    user = user1
    boxtype = pc


    [monitor]
    port = 8988
    aulow = 120
    monlevel = 1


    [webif]
    httpport = 8888
    httpuser = myusername
    httppwd = mypassword
    httpallowed = 192.168.0.0-192.168.255.255
    aulow = 120


    ————————[end]———————————
    oscam.dvbapi
    —————[start]———————————
    #P:0B00:0E03 08290
    P:0B00:0000 0018
    #P:0B00::: 1
    ————[end]———————————


    oscam.services
    —————[start]———————
    [services1]
    caid= 0B00
    provid= 000000,0E030
    #provid=0E030,00000
    srvid= 0026,00000,002A0,000C,001F,002B,001F,002B
    ——————[end]————————


    oscam.srvid
    ————[start]——————
    0B00:002A|Digitenne|FOX
    0B00:002B|Digitenne|xlite
    ———————[end]————


    oscam.user
    ————————[start]—————
    [account]
    user = user2
    pwd = password2
    caid = 0B00
    monlevel = 0
    #4
    au = mysmartreader
    emmreassembly = 1
    group = 1
    services = services1
    #ident = 0B00:00E030
    ident = 0B00:000000
    cacheex = 1
    cacheex_allow_request = 1
    cacheex_allow_filter = 0


    [account]
    user = user1
    caid = 0B00
    pwd =
    monlevel = 4
    au = mysmartreader
    emmreassembly = 1
    group = 1
    services = services1
    #ident = 0B00:00E030,0B00:00000
    #ident = 0100:000000,00006A
    ident = 0B00:000000,00E030
    cacheex = 1
    cacheex_allow_request = 1
    cacheex_allow_filter = 0


    ——————[end]——————————

    • Official Post

    I noticed that the device, caid & ident were not correct.. Try the attached configs buddy. If you have any issues show us another oscam start up log..


    ####Oscam.conf####



    ####Oscam.dvbapi####


    Code
    P: 0B00:0E030


    ####Oscam.server####

    Code
    [reader]
    label                         = Digitenne
    protocol                      = smartreader
    device                        = 003:002
    caid                          = 0B00:0E030
    detect                        = cd
    group                         = 1
    emmcache                      = 1,3,2


    ####Oscam.user####

    Code
    [account]
    description                   = dvbapi
    user                          = linuxsatsupport
    group                         = 1
    au                            = Digitenne
    caid                          = 0B00
    keepalive                     = 1
  • Thank you or the reply i will try that our after dinner, :) man gotta eat right?
    However:
    protocol = smartreader
    dose not work even if i compile OScam whit sudo cmake -DWEBIF=1 -DUSE_LIBUSB=1 i try a few things.
    like:
    sudo ./config.sh -E WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_SSL HAVE_DVBAPI I*****_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK LCDSUPPORT LEDSUPPORT CLOCKFIX IPV6SUPPORT MODULE_CAMD33 MODULE_CAMD35 MODULE_CAMD35_TCP MODULE_NEWCAMD MODULE_CCCAM MODULE_CCCSHARE MODULE_GBOX MODULE_RADEGAST MODULE_SCAM MODULE_SERIAL MODULE_CONSTCW MODULE_PANDORA MODULE_GHTTP CARDREADER_SMARGO -D DVBAPI_SAMYGO


    but i get always protocol not supported.
    But i can use the smargo like in the conf that i posted.
    i installed lib-usb-dev a etc.
    so i will try your conf except that i will mod the reader part, so that it will keep working.
    cheers.
    Adrian


    - - - Updated - - -


    not working will try tomorrow.


    - - - Updated - - -


    So, i had a few problems whit the provided configs when i was starting them i got


    To solve this issue i did the fowling:
    1) i redownload oscam:

    Code
    sudo svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam1


    2) i run the configure scrip and i exclude the samsusn dvb api cuz it was causing problem previously

    Code
    sudo ./config.sh -E WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_SSL HAVE_DVBAPI I*****_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK LCDSUPPORT LEDSUPPORT CLOCKFIX IPV6SUPPORT  MODULE_CAMD33 MODULE_CAMD35 MODULE_CAMD35_TCP MODULE_NEWCAMD MODULE_CCCAM MODULE_CCCSHARE MODULE_GBOX MODULE_RADEGAST MODULE_SCAM MODULE_SERIAL MODULE_CONSTCW MODULE_PANDORA MODULE_GHTTP  CARDREADER_SMARGO -D DVBAPI_SAMYGO


    3) after that and this is the key for smartreader to enable the usblib

    Code
    sudo cmake -DWEBIF=1 -DPCSC=1 -DUSE_LIBUSB=1


    4) execute make
    5)copy the redy made executable to where you need it

    Code
    sudo cp oscam /usr/local/bin/


    6) make it executable

    Code
    sudo chmod 755 /usr/local/bin/oscam


    7)done


    The main issue here was that the card reader was loosing connection sometime whit my previous setting.
    oscam.server

    Code
    [reader]
    label                         = Digitenne
    protocol                      = smartreader
    #device                        = 003:002
    device = SRv2;Serial:AERTY675
    caid                          = 0B00:0E030
    detect                        = cd
    group                         = 1
    emmcache                      = 1,3,2


    Not there is the last issue that i cant decode one mux 762MHZ i get only scratchy audio tvheadend is mumbeling something like that :

    Code
    2014-12-18 16:37:20.757 subscription: 0088: "HTTP" unsubscribing from "MNM", hostname="192.168.178.21", username="", client="VLC/2.1.5 LibVLC/2.1.5"
    2014-12-18 16:37:20.764 mpegts: 762MHz in Digitenne - tuning on Afatech AF9013 : DVB-T #0
    2014-12-18 16:37:20.764 subscription: 0089: "HTTP" subscribing on "National Geographic", weight: 100, adapter: "Afatech AF9013 : DVB-T #0", network: "Digitenne", mux: "762MHz", provider: "Digitenne", service: "National Geographic", hostname="192.168.178.21", username="", client="VLC/2.1.5 LibVLC/2.1.5"
    2014-12-18 16:37:21.628 TS: Digitenne/762MHz/National Geographic Transport error indicator (total 1)
    2014-12-18 16:37:22.003 TS: Digitenne/762MHz/National Geographic: MPEG2VIDEO @ #2081 Continuity counter error (total 1)
    2014-12-18 16:37:22.128 TS: Digitenne/762MHz/National Geographic: MPEG2AUDIO @ #2082 Continuity counter error (total 1)
    2014-12-18 16:37:22.760 pass: Unsupported PAT format - pointer_to_data 196
    2014-12-18 16:37:22.760 pass: PAT rewrite failed, disabling


    The rest is working grate! thanks for the help so far :)
    If anyone has an idea how to solve this i would really appreciate it.

Your resource for Linux TV servers and smart card readers.

Find software downloads, drivers, and support for server setup and card-sharing configurations. Set up a Linux-based TV server. Access downloads and support for server software and USB card readers for advanced TV reception and management

Participate now!

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