Hi,
I've got a problem with the TOWITOKO external ChipDrive smartcard reader. I'm
using the Towitoko chipdrive CT-API driver for Linux and it appears that
single bytes get lost randomly on the way from the reader to the host. Since
the driver software expects to read a certain number of bytes after a request,
the IO_Read routine times out and reports back an error.
For example, here are two runs: (debugging turned on)
[chris@bond test]$ main
Sending: 0 1
Receiving: 80 80 80
---- Reader type: 0x80
Sending: 3 7
Receiving: 80 ERROR /* Timeout */
Error on Port Allocation
[chris@bond test]$ main
Sending: 0 1
Receiving: 80 80 ERROR /* Timeout */
Error: -10 /* -10 = Transmission Error */
I'm using a Pentium II, 16550A UART chip, and everything works fine under
Win98.
Here are the COM1 port parameters where my reader is attached to:
[chris@bond chris]$ setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
Your help is greatly appreciated.
-Chris.
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************