OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Carlos Prados (cpradosyahoo.com)
Date: Sun Feb 24 2002 - 06:19:29 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi,

    It's neither a hardware problem nor a "early USB support" problem.
    Seems more like a missconfiguration problem.

    If you use USB you don't need /etc/reader.conf. This may be why PCSC is
    triyin to load two readers: the one that it detects connected to the
    USB bus and the one that you have defined in the config file.

    My advice is, remove /etc/reader.conf, compile the driver to
    auto-install the USB bundle files under /usr/local/pcsc/drivers by
    providing the following config options:

    $ ./configure --enable-usb --with-pcsc-lite-dir=/usr/local/pcsc (or
    wherever you have installed pcsc-lite).

    Do 'make' and as root 'make install'. If your USB subsystem is ok (you
    have the PL2303 module, compiled and loaded manually or by hotplug) the
      towitoko driver will see a serial port at /dev/ttyUSB0.

    (For information on how to get usb-serial bridge working please see
    http://www.linux-usb.org.)

    PCSC will load an see the reader at /dev/ttyUSB0 as "Towitoko Chipdrive
    USB 0 0". Any PCSC app will need to be provided this name in order to
    locate the reader.

    To access this serial port from towitoko 'tester' or from any other
    CT-API application (like 'smartcard') you will need to provide port
    number starting with 0x8000 (decimal 32768). Or better, you can do a
    symlinc like the following:

    # ln -s /dev/ttyUSB0 /dev/ttyS5.

    So that you see the USB serial port with the Chipdrive at COM6 (port
    number 5).

    You can also use the Debian packages in 'unstable' and all of this will
    be made by you.

    Hope it helps,
    Carlos.
    --- David Corcoran <corcoranlinuxnet.com> wrote:
    > Date: Sun, 24 Feb 2002 01:32:05 +0100
    > From: Camus Moire <cmafm-koeln.de>
    > To: sclinuxlinuxnet.com
    > Subject: towitoko dont wants to work !
    >
    >
    > Hello,
    >
    > i just wanted to play a little bit
    > with smartcards, but it even don't wants
    > to work.
    >
    > hardware: Intel SMP box with HIGHMEM, 2.4.16
    > reader: towitoko reader on usb
    >
    > my logs: starting pcsc daemon
    >
    > pcscd: readerfactory.c 1054: RFInitializeReader: Attempting startup
    > of Towitoko Chipdrive Micro 0 0.
    > pcscd: readerfactory.c 829: RFBindFunctions: Loading IFD Handler 2.0
    > pcscd: pcscdaemon.c 202: main: PC/SC Lite Daemon Ready.
    > pcscd: readerfactory.c 1054: RFInitializeReader: Attempting startup
    > of Towitoko Chipdrive USB 0 0.
    > pcscd: readerfactory.c 829: RFBindFunctions: Loading IFD Handler 2.0
    >
    > (two readers found ???) well, it is definitely only one USB reader.
    > Using tester from towitokos-driver package this happens
    >
    > kernel: usb-uhci.c: interrupt, status 3, frame# 1891
    > kernel: usb.c: USB disconnect on device 2
    > kernel: usbserial.c: PL-2303 converter now disconnected from ttyUSB0
    > kernel: hub.c: USB new device connect on bus1/1, assigned device
    > number 3
    > kernel: usbserial.c: PL-2303 converter detected
    > kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or
    > usb/tts/0 for devfs)
    >
    > using test pam_smardcard module
    >
    > pcscd: winscard_msg.c 210: SHMProcessEvents: Common channel packet
    > arrival.
    > pcscd: winscard.c 66: SCardEstablishContext: Establishing
    > Context: 17027775
    > pcscd: winscard.c 130: SCardConnect: Attempting Connect to
    > Towitoko Chipdrive Micro 0 pcscd: winscard.c 168: SCardConnect:
    > Card Not Inserted
    > pcscd: winscard.c 77: SCardReleaseContext: Releasing Context:
    > 17027775
    >
    > my readers.conf
    >
    > # Towitoko Chipdrive Micro (COM1)
    > FRIENDLYNAME "Towitoko Chipdrive Micro"
    > DEVICENAME TOWITOKO_CHIPDRIVE_MICRO
    > LIBPATH /usr/lib/libtowitoko.so.2.0.0
    > CHANNELID 0x000001
    >
    > strange is, that the led at the reader
    > is totally off. No blinking, nothing.
    >
    > how you see, my setup is located at /usr (--with-pcsc-lite-dir=/usr)
    > by the way, pcsc-lite had some problem to find the drivers dir.
    > Even compiled with prefix /usr. A symbolic link from
    > /usr/local/pcsc/drivers > /usr/drivers resolved this (strange isn't
    > it?)
    >
    > summa summarum - i hope this is not a hardware problem (USB Broken
    > maybe)
    > then more a early USB support behavior.
    >
    > Some advice would be great.
    >
    > Thanks ahead,
    >
    > Camus Moire
    >
    > ***************************************************************
    > Unix Smart Card Developers - M.U.S.C.L.E.
    > (Movement for the Use of Smart Cards in a Linux Environment)
    > http://www.linuxnet.com/
    > To unsubscribe send an email to majordomolinuxnet.com with
    > unsubscribe sclinux
    > ***************************************************************

    __________________________________________________
    Do You Yahoo!?
    Yahoo! Sports - Coverage of the 2002 Olympic Games
    http://sports.yahoo.com
    ***************************************************************
    Unix Smart Card Developers - M.U.S.C.L.E.
    (Movement for the Use of Smart Cards in a Linux Environment)
    http://www.linuxnet.com/
    To unsubscribe send an email to majordomolinuxnet.com with
    unsubscribe sclinux
    ***************************************************************