Hello,

thank you for the prompt answer!
Now it�s getting real strange... I�ve got two Chipcard-Readers from
Towitoko. One for my Homebanking and one from the Linuxpack. For some
reason, these two behave different when reading the card. Maybe, the card is
damaged??? The hanging could not be reproduced, maybe because of the system
boot. The command I tried was:

# echo "testing..." | smartcard -w

With my other Card-Reader (also Chipdrive micro 120 V4.30 connected to COM1)
the result is now:

nathan# smartcard -i
Terminal Manufacturer: DETWK
Terminal Model: CDM
Terminal Revision: 2.0.7
Card Status: Card Inserted (connected)
ATR Protocol: 2W
ATR Structure Ident: common use
ATR Read Error Flag: defined length
ATR Memory Size: 256 blocks, 8 bits wide = 256 bytes
ATR DIR: valid
Answer To Reset (ATR): A2 13 10 91

nathan# smartcard -r --debug | hexdump -v
debug: size is 255
debug: ctbcs_request_icc(0,0,...) = 0, lenr=2
debug: response trail = 90 0
debug: iso_select_file(0,0x0,0x3F00) = 0, lenr=2
debug: response trail = 90 0
debug: read_data(0,...,255,0) reading one chunk
debug: iso_read_binary(0,0,...,255) = 0, lenr=257
debug: copying 255 bytes to user buffer
debug: response trail = 90 0
debug: smartcard_read_data() returned 255
debug: fwrite() returned 255
0000000 13a2 9110 e581 1581 e025 f8d1 c3e0 5d3c
0000010 3641 4957 d254 0076 0400 4300 5241 c1a0
0000020 ffff ffff ffff ffff ffff ffff ffff ffff
0000030 ffff ffff ffff ffff ffff ffff ffff ffff
0000040 ffff ffff ffff ffff ffff ffff ffff ffff
0000050 ffff ffff ffff ffff ffff ffff ffff ffff
0000060 ffff ffff ffff ffff ffff ffff ffff ffff
0000070 ffff ffff ffff ffff ffff ffff ffff ffff
0000080 ffff ffff ffff ffff ffff ffff ffff ffff
0000090 ffff ffff ffff ffff ffff ffff ffff ffff
00000a0 ffff ffff ffff ffff ffff ffff ffff ffff
00000b0 ffff ffff ffff ffff ffff ffff ffff ffff
00000c0 ffff ffff ffff ffff ffff ffff ffff ffff
00000d0 ffff ffff ffff ffff ffff ffff ffff ffff
00000e0 ffff ffff ffff ffff ffff ffff ffff ffff
00000f0 ffff ffff ffff ffff ffff ffff ffff 00ff

nathan# echo "testing..." | smartcard -w --debug
debug: size is 255
debug: ctbcs_request_icc(0,0,...) = 0, lenr=2
debug: response trail = 90 0
debug: fread() returned 11
debug: writing 11 bytes of data
debug: iso_select_file(0,0x0,0x3F00) = 0, lenr=2
debug: response trail = 90 0
debug: write_data(0,...,11,0) writing one chunk
debug: iso_update_binary(0,0,...,11) = 0, lenr=2
debug: response trail = 62 0

nathan# smartcard -r --debug | hexdump -v
debug: size is 255
debug: ctbcs_request_icc(0,0,...) = 0, lenr=2
debug: response trail = 90 0
debug: iso_select_file(0,0x0,0x3F00) = 0, lenr=2
debug: response trail = 90 0
debug: read_data(0,...,255,0) reading one chunk
debug: iso_read_binary(0,0,...,255) = 0, lenr=257
debug: copying 255 bytes to user buffer
debug: response trail = 90 0
debug: smartcard_read_data() returned 255
debug: fwrite() returned 255
0000000 13a2 9110 e581 1581 e025 f8d1 c3e0 5d3c
0000010 3641 4957 d254 0076 0400 4300 5241 c1a0
0000020 ffff ffff ffff ffff ffff ffff ffff ffff
0000030 ffff ffff ffff ffff ffff ffff ffff ffff
0000040 ffff ffff ffff ffff ffff ffff ffff ffff
0000050 ffff ffff ffff ffff ffff ffff ffff ffff
0000060 ffff ffff ffff ffff ffff ffff ffff ffff
0000070 ffff ffff ffff ffff ffff ffff ffff ffff
0000080 ffff ffff ffff ffff ffff ffff ffff ffff
0000090 ffff ffff ffff ffff ffff ffff ffff ffff
00000a0 ffff ffff ffff ffff ffff ffff ffff ffff
00000b0 ffff ffff ffff ffff ffff ffff ffff ffff
00000c0 ffff ffff ffff ffff ffff ffff ffff ffff
00000d0 ffff ffff ffff ffff ffff ffff ffff ffff
00000e0 ffff ffff ffff ffff ffff ffff ffff ffff
00000f0 ffff ffff ffff ffff ffff ffff ffff 00ff

Now i tried another Card ("Chipkarte M16"). This one works without problem.
I can read, write and erase all Data in it.

nathan# smartcard -i
Terminal Manufacturer: DETWK
Terminal Model: CDM
Terminal Revision: 2.0.7
Card Status: Card Inserted (connected)
ATR Protocol: I2C
ATR Structure Ident: common use
ATR Read Error Flag: defined length
ATR Memory Size: 2048 blocks, 8 bits wide = 2048 bytes
ATR DIR: valid
Answer To Reset (ATR): 82 2B 10 84

Mk
----- Original Message -----
From: "Carlos Prados" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 21, 2002 10:01 PM
Subject: Re: [Muscle] Towitoko Linuxpack, Memorycard


> Hi,
>
> Using version 2.0.7, could you send us the output of
> the command `smartcard -i`, to see which card is
> causing you problems?
>
> Also could you provide the exact command you type to
> store data that leaves you hanged? Remember that
> smartcard -w expects data on standatd input and will
> hang until it gets something there to be writen.
>
> Thanks,
> Carlos.
>
> --- Michael_Kl�ne <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> > for some reason, there is no way to store Data in
> > one of the two Memorycards shipped with the
> > Linuxpack from Towitoko. I did try the "original"
> > Version of the Chipdriver on the CD, also the
> > current Version 2.0.7.
> >
> > Reading does work, for example the output of the
> > program smartcard (256 Byte Memory):
> >
> > nathan# ./smartcard -r --debug | hexdump -v
> > debug: size is 255
> > debug: ctbcs_request_icc(0,0,...) = 0, lenr=2
> > debug: response trail = 90 0
> > debug: iso_select_file(0,0x0,0x3F00) = 0, lenr=2
> > debug: response trail = 90 0
> > debug: read_data(0,...,255,0) reading one chunk
> > debug: iso_read_binary(0,0,...,255) = 0, lenr=257
> > debug: copying 255 bytes to user buffer
> > debug: response trail = 90 0
> > debug: smartcard_read_data() returned 255
> > debug: fwrite() returned 255
> > 0000000 13a2 9110 e581 1581 e025 f8d1 c3e0 5d3c
> > 0000010 3641 4957 d254 0076 0400 4300 5241 c1a0
> > 0000020 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000030 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000040 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000050 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000060 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000070 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000080 ffff ffff ffff ffff ffff ffff ffff ffff
> > 0000090 ffff ffff ffff ffff ffff ffff ffff ffff
> > 00000a0 ffff ffff ffff ffff ffff ffff ffff ffff
> > 00000b0 ffff ffff ffff ffff ffff ffff ffff ffff
> > 00000c0 ffff ffff ffff ffff ffff ffff ffff ffff
> > 00000d0 ffff ffff ffff ffff ffff ffff ffff ffff
> > 00000e0 ffff ffff ffff ffff ffff ffff ffff ffff
> > 00000f0 ffff ffff ffff ffff ffff ffff ffff 00ff
> >
> > But when I try to store Data, the program hangs...
> >
> > The test-tool from towitoko also does not write
> > anything into the card.
> > It does not hang, but the data isn�t changed.
> >
> > What am I doing wong???
> >
> > Mk
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> _______________________________________________
> Muscle mailing list
> [EMAIL PROTECTED]
> http://lists.musclecard.com/mailman/listinfo/muscle
>
>
>


_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to