Ubantu PC with USB Smargo (SmartReader+) - Unable to read latency timer: -32

There are 3 replies in this Thread which was already clicked 1,239 times. The last Post () by master G.

  • Hi,


    I have followed the following tutorials:
    Tutorial - Ubuntu 12.04 64-Bit - Automated Oscam/CCcam 2.1.3 Install Package
    Tutorial: Updating Oscam to latest SVN - Ubuntu & debian with Simplebuild


    I think the problem is the PC server will not recognise my card reader (SmartReader+) or also known as Smargo USB reader.


    The error is:
    ftdi_sio ttyUSB0: Unable to read latency timer: -32
    Please help, I have spent many, many, many, hours reading but no luck.


    Here are my configs:
    Osacam.conf


    [global]
    nice = -1
    WaitForCards = 1
    logfile = stdout
    preferlocalcards = 1
    saveinithistory = 1


    [webif]
    httpport = 8888
    httpuser = xxxxx
    httppwd = xxxxx
    httpallowed = 127.0.0.1, 192.168.0.0-192.168.255.255
    httprefresh = 10


    # protocols
    [newcamd]
    key = 0102030405060708091011121314
    port = xxxxx@0963:000000;


    oscam.server
    [reader]
    label = ***UK
    protocol = smartreader
    device = 002:002
    caid = 0963
    # boxid = xxxxxxxx
    # detect = cd
    ecmwhitelist = 0963:16,27,2B,2E,34,36,3B,3D,3E,41,42,44,45,47,4B,4E,4F,50,51,53,54,56,57,58,59,5D,5E,5F,60,61,62,63,64,65,66,67,68,69,6A,6B,6C,6D,6E,6F,70,71,72,73,74,75,76,77,78,79,7A,7B,7C,7D,7E,7F,80,82,84,85,89,8B,8F,99,9A,9B,9C,9F,A2,A8,AC,AD,AE,B0,B4,B7
    mhz = 600
    cardmhz = 600
    ident = 0963:000000
    group = 1
    emmcache = 1,3,2
    blockemm-unknown = 1
    blockemm-g = 1


    oscam.user
    [account]
    user = xxxxx
    pwd = xxxxx
    monlevel = 0
    uniq = 0
    group = 1,2
    au = ***UK
    caid = 0963


    Any help would be appreciated.


    Thank you

  • Several problems cause that
    1. Smargo must have 1.5 firmware
    2. device not to be 002:002 cause frequently linux changes usb map and oscam not find the reader
    3. device must be Serial:Reader XXXXXX a number which is typical of the smargo, run file list_smargo(which you can find in any oscam issue) in yr pc and it will find the number

  • Hi
    I wasn’t able to update the firmware hence couldn’t get the reader number. However i did manage to get Oscam to recognise the card reader and card via:
    device = 002:004
    which i got from code:
    lsusb
    I know this changes each time the computer switches off but it’s something i’m willing to live with for now.


    However, I still have bugs:
    1. The CCcam server doesn’t recognise the card reader. Here is the CCcam.cfg info


    SERVER LISTEN PORT : 12000
    ALLOW TELNETINFO: yes
    ALLOW WEBINFO: yes
    WEBINFO USERNAME : **my user name**
    WEBINFO PASSWORD : ** my password**
    TELNETINFO USERNAME : **my user name**
    TELNETINFO PASSWORD : ** my password**
    TELNETINFO LISTEN PORT : 16000
    WEBINFO LISTEN PORT : 16001
    ZAP OSD TIME :0
    OSD USERNAME :root
    OSD PASSWORD :dreambox
    OSD PORT :80
    SHOW TIMING : yes
    DEBUG : no
    NEWCAMD CONF : no
    SHOW EXTENEDED CLIENT INFO : yes
    MINI OSD : no
    CHANNELINFO FILE : /var/etc/CCcam.channelinfo
    PROVIDERINFO FILE : /var/etc/CCcam.providers
    CAID PRIO FILE : /var/etc/CCcam.prio
    LOG WARNINGS : /tmp/warnings.txt
    SOFTKEY FILE : /var/keys/SoftCam.Key
    AUTOROLL FILE : /var/keys/AutoRoll.Key
    #STATIC CW FILE : /var/keys/constant.cw
    #BOXKEY:
    SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB2 4800000
    SERIAL READER : /dev/ttyUSB0 smartreader+
    SERIAL READER : /dev/ttyUSB1 smartreader+
    SERIAL READER : /dev/ttyUSB2 smartreader+
    SERIAL READER : /dev/ttyUSB3 smartreader+
    SERIAL READER : /dev/ttyUSB4 smartreader+
    SERIAL READER : /dev/ttyUSB5 smartreader+


    N: **my server ip** 10000 user1 pass1 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256
    N: **my server ip** 10000 user2 pass2 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256


    2. When I add the C/F line details in the ***box f5 under:
    a. MGCamd Plug Setup
    i. Manage Config Files
    1. Newcamd.list
    The OSCAM (1.20-unstable_svn build r8662) does recognise it but only for a shortwhile here is the code it produces:


    2013/05/27 17:24:19 0 --- Skipped 7 duplicated log lines ---
    2013/05/27 17:24:19 0 s [OSCAM] new event 1 occurred on fd 3 after 410 ms inactivity
    2013/05/27 17:24:19 0 s start client thread action 26
    2013/05/27 17:24:19 2372650 c data from add_job action=26 client c anonymous
    2013/05/27 17:24:19 2372650 c client connected to 10000 port
    2013/05/27 17:24:19 2372650 c nmr(): len=2, errno=0
    2013/05/27 17:24:19 2372650 c nmr: autodetect: newcamd525 used
    2013/05/27 17:24:19 2372650 c received 46 bytes from client
    2013/05/27 17:24:19 2372650 00 00 E0 00 29 75 73 65 72 31 00 24 31 24 61 62
    2013/05/27 17:24:19 2372650 63 64 65 66 67 68 24 6D 30 71 31 61 51 42 6B 73
    2013/05/27 17:24:19 2372650 74 78 58 6E 66 4F 34 4D 37 47 77 65 30 00
    2013/05/27 17:24:19 2372650 c account->usr=user1
    2013/05/27 17:24:19 2372650 c account->pwd=$1$abcdefgh$m0q1aQBkstxXnfO4M7Gwe0
    2013/05/27 17:24:19 2372650 c encrypted newcamd:10000-client 192.168.1.82 granted (user1, au=on (1 reader))
    2013/05/27 17:24:19 2372650 c user user1 authenticated successfully (generic)
    2013/05/27 17:24:19 2372650 c ***UK [videoguard2] EMM: caid 0963 has no provider
    2013/05/27 17:24:19 2372650 c AU enabled for user user1 on reader ***UK
    2013/05/27 17:24:19 2372650 c send 15 bytes to client
    2013/05/27 17:24:19 2372650 00 0D 00 01 00 00 00 00 00 00 00 00 E1 00 00
    2013/05/27 17:24:19 2372650 c nmr(): len=2, errno=0
    2013/05/27 17:24:19 2372650 c received 5 bytes from client
    2013/05/27 17:24:19 2372650 00 00 E3 00 00
    2013/05/27 17:24:19 2372650 c client[7F371A856700].user1 nfilts=0, filt.caid=0963
    2013/05/27 17:24:19 2372650 c newcamd: has cd
    2013/05/27 17:24:19 2372650 c send 38 bytes to client
    2013/05/27 17:24:19 2372650 00 24 00 00 00 04 00 00 00 00 00 00 E4 00 17 01
    2013/05/27 17:24:19 2372650 09 63 00 00 00 00 02 DF 10 5D 01 00 00 00 00 00
    2013/05/27 17:24:19 2372650 00 00 02 DF 10 00
    2013/05/27 17:24:19 236C700 r ***UK [videoguard2] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
    2013/05/27 17:24:20 0 --- Skipped 1 duplicated log lines ---
    2013/05/27 17:24:20 140008C0 h WebIf: Received stale header from **my IP** (nonce=bdb88f0e5310b7f27a57b80c9790cf23, expectednonce=ed2637ab643fbab9ec63c3528b6b0a2e, opaque=f470b7456c14d919a616c6cccb07bd62).
    2013/05/27 17:24:20 140008C0 h WebIf: Origin checked. Result: access from **my IP** => allowed
    2013/05/27 17:24:21 0 --- Skipped 1 duplicated log lines ---
    2013/05/27 17:24:21 236C700 r ***UK [videoguard2] cardreader_do_checkhealth: reader->card_status = 2, ret = 1


    And then it automatically kills the client:


    2013/05/27 17:26:22 2372650 c add client job action 27 queue length 1 user1
    2013/05/27 17:26:22 2372650 c user user1 reached 120 sec idle limit.
    2013/05/27 17:26:22 2372650 c ending thread (kill)



    Really confused now


    Thank you

    • Official Post
    Quote

    1. The CCcam server doesn’t recognise the card reader. Here is the CCcam.cfg info


    You are trying to have both oscam & CCcam as card reader, choose one or the other, the whole point of the oscam+CCcam combination is to use oscam as cardreader and CCcam as server..


    Disable these lines by adding # infront of them or remove completely from the CCCam.cfg

    Code
    #SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB2 4800000
    #SERIAL READER : /dev/ttyUSB0 smartreader+
    #SERIAL READER : /dev/ttyUSB1 smartreader+
    #SERIAL READER : /dev/ttyUSB2 smartreader+
    #SERIAL READER : /dev/ttyUSB3 smartreader+
    #SERIAL READER : /dev/ttyUSB4 smartreader+
    #SERIAL READER : /dev/ttyUSB5 smartreader+

Participate now!

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