Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default Smargo Smartreader+

    Please, try to reply in English, only!

    I will try to compile in one thread what I found related to Smargo, compiled from different sources.
    I'm not the author, I will just add comments from what I discovered testing this amazing device.

    First of all, a short presentation of this device.


    - Powerfull ARM® 91 Thumb® Processor

    - High-performance 32-bit RISC Architecture

    - High-density 16-bit Instruction Set

    - 64 Kbytes, organized in 512 Pages of 128 Bytes (Single Plane)

    - 16 Kbytes Internal High-speed SRAM, Single-cycle Access at Maximum Speed

    - Low-power RC Oscillator, 3 to 20 MHz On-chip Oscillator and one PLL

    - Supports 3.20, 3.43, 3.69, 4.00, 4.36, 4.80, 5.34, 6.00, 6.86, 8.00, 9.61, 12.0 and 16.0 MHz for smartcards

    - Supports standard ftdi_sio driver for Windows and Linux applications

    - Developer guide available.

    - Works on all Dreambox Models with USB connection

    - Works with most softcams (e.g. Newcs, CCcam ect.)

    - Can be cascaded with more SmartReaders using a USB Hub.

    - No power supply required






    developer/ manual

    Smartreader+ integraters manual

    * Smartreader modes

    The Smartreader+ had two modes, command mode and data mode.
    Till the CMD mode is entered the smartreader+ is working as a phoenix device at 3,57Mhz.
    After entering CMD mode and returning to DATA mode the reader is configured as Smartreader+
    and will probably not work as a phoenix till the next time it's cold started by removing the device from the USB port.
    In the CMD mode it's possible to program the settings like frequency, protocol, etu, N and inversion.

    * Mode selection

    To enter the CMD mode set the reader to 5 databits.

    example:

    /* set smartreader in CMD mode */
    struct termios term;
    tcgetattr(deviceFd, &term);
    term.c_cflag &= ~CSIZE;
    term.c_cflag |= CS5;
    tcsetattr(deviceFd, TCSANOW, &term);

    To enter the DATA mode set the reader to 8 databits.

    example:

    /* set smartreader in DATA mode */
    struct termios term;
    tcgetattr(deviceFd, &term);
    term.c_cflag &= ~CSIZE;
    term.c_cflag |= CS8;
    tcsetattr(deviceFd, TCSANOW, &term);

    The Smartreader+ doesn't switch by itself so it's to the user to make sure that setting all the right values
    you exit CMD mode and enter DATA mode for receiving/sending data to the smartcard.

    note: Settings are activated by leaving CMD mode!

    * Settings

    setting nr payload response
    1 FF FF DD sets Fi and Di factors
    2 FR EQ sets the frequency
    3 NN sets the N value
    4 PR sets the protocol
    5 IN sets inversion on(1)/off(0)

    there is no response from the Smartreader+ after accepting the settings.

    Example: Smartreader+ settings for ISO7816 t=0 smartcards:

    sr+ <-- CMD MODE
    sr+ <-- 01 01 74 01
    sr+ <-- 02 0D FB
    sr+ <-- 03 00
    sr+ <-- 04 00
    sr+ <-- 05 00
    sr+ <-- DATA MODE
    sr+ <-- toggle reset
    sr+ --> ATR

    * Available frequencies

    3.20, 3.43, 3.69, 4.00, 4.36, 4.80, 5.34, 6.00, 6.86, 8.00, 9.61, 12.0 and 16.0 MHz

    The user can selected any freqency. The Smartreader+ will selected the nearest available.

  2. #2
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Second Part

    This tutorial assumes the user has a DM7020 or a DM800. The tutorial can be used as is, or adapted easily for a standard Linux setup.


    How to set smartreader operating mode using Windows

    1: Install the windows drivers found here Smartreaderplus Drivers
    2: Open smartreader.exe
    3: Plug the smartreader into a usb port
    4: Select Autoswitch or fixed mode
    5: Select Normal or Dreambox kernel
    6: Make sure it returns with "writing settings successful"
    7: Done


    DM7020 dreambox installation with PLI Iolite/Jade

    1: Telnet to your dreambox run "ipkg update"
    2: Run "ipkg install kernel-module-ftdi-sio"
    3: Exit
    4: Rename your original bootup file in /etc/init.d/ incase you have a problem*
    5: Replace the bootup file in /etc/init.d/ with this one Smartreaderplus Drivers the bootup file is in the zipfile.
    6: Reboot
    7: Plug in the smartreader
    8: Insert your card. Make sure the chip on the card faces the same direction as the lights on the reader.
    9: Done

    * The latest PLi Jade Final image appears to already have the usbtoserial configured in the bootup file. So no need to replace the bootup file.


    DM800 dreambox installation with PLI Iolite/Jade
    1: Enter the download menu
    2: Search for USBtoSerial drivers
    3: Download
    4: Reboot
    5: Plug in the smartreader
    6: Insert your card. Make sure the chip on the card faces the same direction as the lights on the reader.
    7: Done


    DM7020/cccam.cfg
    CCcam configuration sample:

    SERIAL READER : /dev/usb/tts/0 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/0 6860002
    SERVER LISTEN PORT : 20000
    WEBINFO LISTEN PORT : 21000
    WEBINFO USERNAME : username
    WEBINFO PASSWORD : password
    SHOW TIMING : yes

    It is possible to add a usb hub to the DM7020. To incorporate a 4 port hub into the config insert the following:

    SERIAL READER : /dev/usb/tts/0 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/0 6860002
    SERIAL READER : /dev/usb/tts/1 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/1 6860002
    SERIAL READER : /dev/usb/tts/2 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/2 6860002
    SERIAL READER : /dev/usb/tts/3 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/3 6860002


    DM800/cccam.cfg
    CCcam configuration sample:

    SERIAL READER : /dev/ttyUSB0 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 6860002
    SERVER LISTEN PORT : 20000
    WEBINFO LISTEN PORT : 21000
    WEBINFO USERNAME : username
    WEBINFO PASSWORD : password
    SHOW TIMING : yes

    The DM800 comes with 2 USB ports already. However if you wish to add a usb hub you can.

    The above cfg's assume that the reader is set to autoswitch mode and dreambox kernel.

    You can choose any of the following frequencies: 3.20, 3.43, 3.69, 4.00, 4.36, 4.80, 5.34, 6.00, 6.86, 8.00, 9.61, 12.0 and 16.0

    Examples:
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/0 6000002 runs the card at 6mhz.
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/0 6860002 runs the card at 6.86mhz.
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/0 8000002 runs the card at 8mhz.
    SMARTCARD CLOCK FREQUENCY: /dev/usb/tts/0 9610002 runs the card at 9.61mhz.

    Most cards run at 6000002 or 6860002.

    Ofcourse the reader can be used with other images such as Gemini etc. Feel free to experiment

  3. #3
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Using Smargo with Newcs

    Please note that newcs 1.62 (and older) could handle this device as a Phoenix interface, only
    . This means that the frequencies are fixed at the default value and no overclocking are possible.
    Newcs 1.62 has already implemented the type function
    <type>smartreader</type>
    but is not operational yet. Newcs team are waiting for some code lines from Smargo developers.

    You can use instead
    <type>phoenix</type>
    but as I write above, the frequency will remain at the default value.

  4. #4
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Linux server with Ubuntu and a Smargo smartreader+ with CCCam

    set it up like this:

    Run command: srp_tools_x86
    smartreader+ version v1.3
    MODE autoswitch
    FREQ 3.69 Mhz
    KERNEL normal
    T_MODE t = 0
    EGT 0

    SERIAL READER : /dev/ttyUSB0 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 3580000


    CCcam.cfg as this
    ###############################################
    #### Config ####
    ###############################################
    SERVER LISTEN PORT : 10000
    ALLOW TELNETINFO: yes
    ALLOW WEBINFO: yes
    WEBINFO USERNAME :
    WEBINFO PASSWORD :
    TELNETINFO USERNAME :
    TELNETINFO PASSWORD :
    TELNETINFO LISTEN PORT : 16000
    WEBINFO LISTEN PORT : 16001
    ZAP OSD TIME :0
    OSD USERNAME :root
    OSD PASSWORD :####
    OSD PORT :80
    SHOW TIMING : yes
    DEBUG : no
    NEWCAMD CONF :no
    DISABLE EMM : no
    EXTRA EMM LEVEL : yes
    MINI OSD : yes
    SOFTKEY FILE : /var/keys/SoftCam.Key
    AUTOROLL FILE : /var/keys/AutoRoll.Key
    STATIC CW FILE : /var/keys/constant.cw
    CAID PRIO FILE : /var/keys/CCcam.prio
    PROVIDERINFO FILE : /var/etc/CCcam.providers
    CHANNELINFO FILE : /var/etc/CCcam.channelinfo
    LOADBALANCE : /dev/ttyUSB0 /dev/ttyUSB1
    SERIAL READER : /dev/ttyUSB0 smartreader+
    SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 3580000
    MINIMUM CLIENT VERSION : 2.0.1
    EMM THREADS : 1
    MINIMUM DOWNHOPS: 0


    Take care at the frequency set above. Set it according to your card!

  5. #5
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Because many forum readers was asking me what I used for testing, here's the answer:
    Ubuntu 8.10 AMD64, on Intel platform (E8500, 4GB RAM);
    NewCS 1.62 64bits;
    CCcam 2.0.11 64bits;

    I tested also several other versions of CCcam (including "regular" versions of 32 bits), all of them was also working stabile.

    The only unstable command (including on 64 bits version) was when trying to use CCcam with -t option, when the system is freezing after few hours of operation.

    The best option seems to be CCcam -dv

    Any other question? Please, ask here, not on PM.

  6. #6
    Junior Member Junior
    RDI - Board Default Avatar

    Join Date
    Nov 2008
    Posts
    6
    Posts Thanks / Likes

    Default

    I have Dreambox 7020 with Gemini 4.30 und cccam 2.10 version

    How can I install Smarg0 usb card reader
    I have a viaacess smart card

  7. #7
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    I suppose that the drivers was already installed in the DM7020, so write this in cccam.cfg:

    SERIAL READER : /dev/ttyUSB0 smartreader+


    Start the CCcam in telnet with the command:

    CCcam_2.0.11 -dv &

    Check in the online log if the cardreader was connected and if it's working.

    If everything went fine, just reboot the dream and that's all !

    Good luck!

  8. #8
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

  9. #9
    Junior Member Junior
    RDI - Board Default Avatar

    Join Date
    Oct 2007
    Posts
    3
    Posts Thanks / Likes

    Default

    Hi

    I hve DM800, smargo cardreader and Skyuk card. I followed your tutorial but still my card not working.

    When the smargo connected to PC, it does not say "writing settings successful" after running the smartreader.exe

    Please help.

    Regards

  10. #10
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Ma chinui de 2 zile sa fac un Smargo sa mearga pe Fedora 10 si nu reusesc. Efectiv, nu-l vede, nici dupa ce am instalat si dezinstalat toate bibliotecile si driverele posibile, inclusiv recompilate.

    A reusit cineva sa-l faca sa mearga pe Fedora 10?

  11. #11
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Revin cu amanunte:
    Este vorba de driver Linux pentru cipul FT232BM (USB<=>serial asincron).

  12. #12
    Silver Member Expert
    Join Date
    Jan 1970
    Location
    US of Europe
    Posts
    2,119
    Posts Thanks / Likes

    Default

    Please, try to reply in English, only!

    Thanks !


  13. #13
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    I just overclocked a F0cu$ card from 3.57 up to 8.00 MHz (Smargo, of course). It's working great, with ecm responses at only 120 ms

    @Sommersby
    That's fine with you?

  14. #14
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Thread-ul asta nu mai are ce cauta la "sticky", o sa-l "retrogradez". Cine are nevoie de informatiile de mai sus, le poate gasi cu "search".

  15. #15
    Junior Member Junior
    RDI - Board Default Avatar

    Join Date
    Aug 2008
    Posts
    8
    Posts Thanks / Likes

    Default

    hi,

    i have installed ubuntu server 8.10 and i configure all.

    But my cccam 2.1.2 don't recogniezed my sKyIta nds3.

    can you help me?

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top