On Tue, 21 Jul 1998, Frank Boehm wrote:
>
> I have difficulties to access the towotoko reader/writer.
> starting with /musclecard-1.2/drv, I changed dbiiso.h dbiiso.c and wrote
> mini.c for basic tests.
>
> made a card status check, expecting ss,nc and recieved 3,7
> I got a FIFO when a smartcard is inserted and error message without a card.
>
> () - send
> [] - expected answer
> {} - recieved with card/without card
>
> card status check: (03,07) [01] {03,07}/{0}
> activate card: (60,0F,9C) [01] {60,0F,9C}/{0}
> deactivate card: (61,0F,98) [01] {61,0F,98}/{0}
>
I have been working on your mini test program, and I see you are reading
more bytes that the card send. That makes the IO_Read stop for
ioport.blocktime seconds, and return an error.
I have have corrected that and now I'm being able to activate and
dresactivate the card reader and get the status correctly.
If you are getting a FIFO maybe that is beacause another device is using
the COM port. I had to desactivate de modem to run the mini program (if
you've got an isapnp modem, go to /etc/isapnp.conf and comment the ACT Y
line related to your modem device, and re-run isapnp /etc/isapnp.conf)
I think this last will be a difficulty to install the driver. Any ideas
are welcomed.
The modified source code is in
ftp://apolonio.atos-ods.es/pub/musclecard/mini.tar.gz
Thanks,
Carlos Prados.
***************************************************************
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
***************************************************************