I am using a towitoko micro 100 (external) reader and
towitoko M2 chipcard, which is a memory card using the I2C protocol.
My intention is to store about 100 Bytes on the card.
I had a try with the tester program from towitoko-2.0.0-pre4 driver.
Compiling and running the program shows no errors.
However a write operation to the card doesn't change its memory.
My test consists of the following steps:
> tester (invoke program)
> in 1 (init terminal ttyS0)
> rd 20 1 (read byte at offset 20)
> wd 20 1 0 (assign value 0 to that byte)
> rd 20 1 (read value again)
> q (quit)
Here comes the same procedure including the tester's responses.
I left out the 'select option' messages for readability.
> ./tester
> in 1
Port number (1..4):Initialising reader at COM1...
Introduce a card in the reader at COM1
.
Activating card...
ATR: A2 13 10 91
> rd 20 1
Address: Size (0..255): Command: 0 A4 0 0 2 3F 0
Response: 90 0
Command: 0 B0 0 14 1
Response: 54 90 0
> wd 20 1 0
Address: Size (0..255): Data: Command: 0 A4 0 0 2 3F 0
Response: 90 0
Command: 0 D6 0 14 1 0
Response: 62 0
> rd 20 1
Address: Size (0..255): Command: 0 A4 0 0 2 3F 0
Response: 90 0
Command: 0 B0 0 14 1
Response: 54 90 0
> q
Closing terminal at COM1
Do I need a different card type to achieve the storage of data?
I may be underlying a total misunderstanding concerning the cards
ability and intention. Hope you help me novice nevertheless.
By the way:
the card's description says:
- 2Kbit I2C EEPROM
- 256 Byte Memory
- read and write access
What is the the EEPROM and the memory for?
What's the difference between those two?
Shall/can I store data in the EEPROM or the memory?
Greetings to the Linux community and
gracias a David Corcoran y Carlos Prados
who are doing a great job for us all.
Ludwig Prager
--
---------------------------------------------------------
Dipl.Inform.Univ |
Ludwig Prager | 089 743 704 22
| Phone: 08074 17 66 19
Marienstr. 12 | 0173 362 96 01
83530 Waldhausen |
GERMANY | E-Mail: [EMAIL PROTECTED]
|
81314 Munich PF | E-Fax: 01805-661 666 209 45
GERMANY
***************************************************************
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
***************************************************************