<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Savel brain dump in English! &#187; Alien articles</title>
	<atom:link href="http://blog.savel.org/category/alien-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.savel.org</link>
	<description>Same chaos as in my room or DIY guide for you.</description>
	<lastBuildDate>Fri, 16 Jul 2010 19:27:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Historical article about phone cards</title>
		<link>http://blog.savel.org/1999/07/19/historical-article-about-phone-cards/</link>
		<comments>http://blog.savel.org/1999/07/19/historical-article-about-phone-cards/#comments</comments>
		<pubDate>Mon, 19 Jul 1999 19:29:32 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Alien articles]]></category>

		<guid isPermaLink="false">http://blog.savel.org/2005/07/19/historical-article-about-phone-cards/</guid>
		<description><![CDATA[This article was used for my experiments. It is very pity, but it is no longer online. I extracted it from Google cache. German Chip-cards Version 2.4 August 1999 Here you can find out, what is written in a German &#8230; <a href="http://blog.savel.org/1999/07/19/historical-article-about-phone-cards/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>This article was used for my experiments. It is very pity, but it is no longer online. I extracted it from Google cache.</strong></p>
<p><code><br />
German Chip-cards<br />
Version 2.4 August 1999 <br />
<font color=#3366ff>Here you can find out, what is<br />
written in a German medical card, or how much money there is left on a telephone card!</font><br />
<br />&nbsp; <br />This document and the enclosed program may be distributed freely.<br />
However using this document or parts of it in other publications is only allowed<br />
with the mention of this source used. The card reader and the software have<br />
the purpose to analyze telephone and medical cards. At this point I want to<br />
refer to the relevant, national data protection laws. This publication is only<br />
for studying purposes. For want-to-be-hackers : no - you can't refill a <b style="COLOR: black; BACKGROUND-COLOR: #ffff66">telephone card</b>! <br />
I do not guarantee the faultlessness of the software or the hardware. I feel not<br />
responsible for any consequences resulting from the use of this publication. &nbsp; </p>
<p><b><u><font color=#000000>I. Introduction:</font></u></b> </p>
<p>I had the idea to build a chipcard <b style="COLOR: black; BACKGROUND-COLOR: #a0ffff">reader</b> after seeing sundry<br />
ads and articles. All the card readers shown there had one thing in common : a<br />
micro-controller (e.g. PIC) or even a small microcomputer system. The price for<br />
such a device was (and is) of course pretty high and it would be very hard to be<br />
able to program it because of missing information. Then I have seen many<br />
do-it-yourself instructions that showed how to connect a chip card more or less<br />
direct to the parallel interface of the PC. It gave me the shivers, e.g. seeing<br />
how the cards were supplied directly by the interface. No wonder, when the power<br />
supply crashes sometimes.
</p>
<p>I have been trying to make the circuit so simple as possible but trying to<br />
guarantee a secure operation within the specifications at the same time. I think<br />
I have succeeded : everything you need is a "chipcard contact unit" (e.g. from<br />
Conrad), an ordinary CMOS buffer IC (4049) and a PC with a printer interface.<br />
The costs will be about 7$ / 10 Marks - provided you don't fear the<br />
do-it-yourself construction. Of course the chipcard must be controlled by<br />
software completely, but even for very old computers it's no problem. Under<br />
Windows you could even realize this with DLLs.
</p>
<p>For the <b style="COLOR: black; BACKGROUND-COLOR: #a0ffff">reader</b> I have<br />
  written a program. There is a Pascal-Version (which I won't write further on)<br />
  and a C++ Version. It's written for LINUX, but porting it to other systems won't<br />
  be hard (see point IV). 
</p>
<p> <b><u><font color=#000000>II. The Chipcard:</font></u></b>
</p>
<p>Since the first chipcard (a telecard) from Thomson Semiconductors had been<br />
  introduced in the 80's, there is a great chipcard boom. In the meantime they<br />
  find application as moneycards, medical / health cards, identification cards,<br />
  etc. and the next generation is now coming, too : without any contacts they<br />
  can transceive data via a built-in coil, which also supplies it with energy!
</p>
<p><u>Smart-cards and Memory-cards:</u> <br />Generally one can distinguish between<br />
two types of chipcards : smartcards (processorcards) and memorycards.<br />
Memorycards are the far simpler types: they consist of a memory and if necessary<br />
a security logic. Typical application : the telecard. Smartcards are much more<br />
complex. They are nearly complete microcomputers : CPU (or microcontroller),<br />
ROM, RAM, EEPROM and if needed a crypto (co-) processor are integrated on the<br />
chip. They give a maximum of security to the user. A typical application is here<br />
the money card. <br />&nbsp; <br /><u>Synchronous and Asynchronous Chipcards:</u><br />
<br />Looking at the same thing in a technical manner, one can distinguish between<br />
synchronous and asynchronous chipcards. One can draw clear lines to the effort<br />
of distinction in the point above : smartcards as the GSM-card or the money card<br />
are asynchronous chipcards and memorycards as the telecard and the KVK are<br />
synchronous chipcards. <br />They are called "synchronous" because the data on the<br />
I/O-line is transmitted synchronous to the clock on the CLK-line. Typical<br />
frequencies range from 10 to 50 kHz. Programming such a chipcard with the PC is<br />
in general completely uncritical (in my LINUX program there is even no timing at<br />
all...). Asynchronous chipcards are different : here is a relatively high clock<br />
requiered for the processor. It is not generated on the chipcard itself, because<br />
a crystal would be too big for the thin card. The frequencies used here reach<br />
some megahertz - typical are for example 3.57 MHz. With a divisor of 372 you get<br />
9600 baud and it's very handy that the used protocol resembles a serial<br />
transmission (startbits, databits, stopbits). So you can use an ordinary UART<br />
for the communication! <br />&nbsp;<br />
<center><b><font color=#000099>This publication is exclusively restricted to<br />
synchronous chipcards!</font></b></center>&nbsp; <br /><u>ISO 7816:</u> <br />As<br />
(nearly) everything, (nearly) every chipcard is standardized. The most important<br />
standard and with that the basis for chipcards "Integrated circuit(s) cards with<br />
contacts" is ISO 7816. Its most important contents can be found in the three<br />
parts ISO 7816-1 to ISO 7816-3. Besides them there are defined ISO 7816-4 to<br />
-10, which I won't enter into. </p>
<ul>ISO 7816-1 defines the physical characteristics of a chipcard <br />ISO<br />
  7816-2 defines the dimensions and location of the contacts <br />ISO 7816-3<br />
  defines the electronic signals and the transmission protocols</ul>
<p><u>The<br />
Pinout:</u> <br />
The first you will be interested in, is surely the pinout (picture 1). This one<br />
is used by the German telecard as well as by the medical card. Apart from this<br />
"ISO - version" there is also defined the pin-out according to AFNOR (see <b><font color=#990000>[5]</font></b><br />
for more). </p>
<p><u>The Initialization (Reset and ATR):</u> <br />
The second you will have to know is the communication with the card: after the<br />
reset of an ISO - card, you can read the 4 ATR - bytes (picture 2). This so-called<br />
<b><font color=#000099>A</font></b>nswer-<b><font color=#000099>T</font></b>o-<b><font color=#000099>R</font></b>eset contains information about the card and its protocol<br />
(picture 3). Please be aware that you can only employ this reset on synchronous<br />
chipcards! <br />
&nbsp; <br />
&nbsp; <br />
<tt><font size="-3">The ISO-reset and the reading of the ATR:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
( Picture 2 )</font></tt>
</p>
<p><font size="-3"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#cc0000>&nbsp; ,_______________</font>___________________________________...</tt><br />
  <br />
  <tt>&nbsp;&nbsp; Vcc&nbsp;&nbsp; <font color=#cc0000>__|&nbsp;&nbsp; .&nbsp;&nbsp;<br />
  .&nbsp;&nbsp; .&nbsp;&nbsp; </font>.&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp;<br />
  .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .</tt><br />
  <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#cc0000>&nbsp; .&nbsp;&nbsp; ,___________</font>,&nbsp;&nbsp; .&nbsp;&nbsp;<br />
  .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp;<br />
  .</tt> <br />
  <tt>&nbsp;&nbsp; Rst&nbsp;&nbsp; <font color=#cc0000>______|&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; </font>|__________________________________...</tt><br />
  <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#cc0000>&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; ,___,&nbsp;&nbsp; </font>.&nbsp;&nbsp;<br />
  ,___,&nbsp;&nbsp; ,___,&nbsp;&nbsp; ,___,&nbsp;&nbsp; ,___,</tt> <br />
  <tt>&nbsp;&nbsp; Clk&nbsp;&nbsp; <font color=#cc0000>__________|&nbsp;&nbsp; |___</font>____|&nbsp;&nbsp; |___|&nbsp;&nbsp;<br />
  |___|&nbsp;&nbsp; |___|&nbsp;&nbsp; |__...</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#cc0000>&nbsp; . </font><font color=#000000>t</font><font color=#cc0000><br />
  .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; </font>.&nbsp;&nbsp; .&nbsp;&nbsp;<br />
  .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp;<br />
  .</tt> <br />
  <tt>&nbsp;&nbsp; I/O&nbsp;&nbsp; x=====x=======x=======x=======x==...</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  |&nbsp; ^ (0)&nbsp;&nbsp; ^ (1)&nbsp;&nbsp; ^ (2)&nbsp;&nbsp; ^ (3)</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<font color=#cc0000> Reset&nbsp;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />
  Read</tt> <br />
  &nbsp; </font>
</p>
<p><font size="-3"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = : unknown<br />
  level (data valid)</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : unknown level (data not<br />
  valid)</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^ : point of time to read<br />
  the bit and bit number in brackets</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t : 1 time unit (&gt;10us)<br />
  &lt;- not completely concurring with ISO, but it's OK.</tt> <br />
  <tt>&nbsp;</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; voltage levels : &gt;0V<br />
  and &lt;Vcc</tt> </font>
</p>
<p>
  <u>The ATR-Byte H1:</u> <br />Chipcards may use many different<br />
protocols : for example the well-known (and unaltered) I<sup><font size=-2>2</font></sup>C-protocol, the 2-wire or the 3-wire protocol. The<br />
cardreader can handle all three of them. <br />&nbsp; <br />The first ATR - byte<br />
(H1) shows, which protocol is employed: <br />&nbsp; </p>
<ul>
  <tt><font size="-3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  H1 : Protocol Byte</font></tt> <font size="-3"><br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  ( Picture 3 )</tt> <br />
  <tt>&nbsp; BIT&nbsp;&nbsp; :&nbsp;&nbsp; 7&nbsp; 6&nbsp; 5&nbsp; 4&nbsp; 3&nbsp;<br />
  2&nbsp; 1&nbsp; 0</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \__________/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  \____/</tt> <br />
  <tt>&nbsp;</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  structure</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  |</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  |</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000 : I<sup>2</sup>C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  00 : defined by ISO</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1001 : 3-wire&nbsp;<sup>&nbsp;</sup>&nbsp;&nbsp;&nbsp;&nbsp;<br />
  10 : structure 1&nbsp; }</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1010 : 2-wire&nbsp;<sup>&nbsp;</sup>&nbsp;&nbsp;&nbsp;&nbsp;<br />
  01 : structure 2&nbsp; } not defined by ISO</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<sup>&nbsp;</sup>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
  11 : structure 3&nbsp; }</tt> </font><br />
  <tt>&nbsp;</tt></ul>
<p><u>"Epilogue":</u> <br />Let<br />
me say a word about the standards: apparently it's a fault to believe that you<br />
can easily get access to standards. At least this is true for the ISO -<br />
standard, a large number of publications is referring to - e.g. this one. People<br />
only with a small amount of money available (students) don't need to look at<br />
<b><u>www.iso.ch</u></b>. <br />An alternative is to examine other organizations,<br />
e.g. ECMA. They could have the same standard - only under an other number but<br />
for free. At this point I want to refer to the "<b>standards-faq</b>", which has<br />
more information on this topic. <br />&nbsp; <br />&nbsp; <br />
<b><u><font color=#000000>II.1. The Telecard / Phone Card:</font></u></b>
</p>
<p>The most known application is surely the telecard. It has a certain value,<br />
which is reduced by using it, until there are no more units left on the card.
</p>
<p><u>"Manual Analysis" - Description of the Numbers:</u> <br />To get information<br />
about a certain card, you need not necessarily a card <b style="COLOR: black; BACKGROUND-COLOR: #a0ffff">reader</b> at once. All<br />
informations are already printed on the card except the instantaneously<br />
remaining units. (Actually only a part of this information is stored on the chip<br />
itself !) <br />&nbsp; <br />&nbsp;<br />
<center><br />
    &nbsp; <br />
    <u>Memory Structure:</u> <br />
    The card contains a 16 byte "big" memory (128 bit&nbsp; in NMOS(?)-technology).<br />
    There are cards with 64 bytes, too - for compatibility reasons here only the<br />
    first 16 bytes are relevant. A telecard is a synchronous chipcard, so to read<br />
    it you will follow the "instructions" as shown in the diagram (picture 2).<br />
    You can read all 16 (64) Bytes at once. Be aware that the first 4 bytes of<br />
    the memory obviously are no ATR - bytes! Unfortunately I don't have the complete<br />
    information at this time.<b> (Has anybody infos about that ?)</b><br />
  </center>
</p>
<p>The memory is split in different types: </p>
<ul>&nbsp; </p>
<table cellPadding=0 border=0>
<tbody>
<tr>
<td><font size="-3"><tt>64 bit EPROM</tt></font></td>
<td><font size="-3"><tt>:&nbsp;</tt></font></td>
<td><font size="-3"><tt>Informationen about the telecard</tt></font></td>
</tr>
<tr>
<td><font size="-3"><tt>40 bit EEPROM with security logic</tt></font></td>
<td><font size="-3"><tt>:&nbsp;</tt></font></td>
<td><font size="-3"><tt>Memory for the remaining credit</tt></font></td>
</tr>
<tr>
<td><font size="-3"><tt>24 bit EEPROM, normally set to "1"&nbsp;</tt></font></td>
<td><font size="-3"><tt>:&nbsp;</tt></font></td>
<td><font size="-3"><tt>No function, writable on 64 byte cards</tt></font></td>
</tr>
</tbody>
</table>
<p>  &nbsp;</ul>
<p>This table is taken from <b><font color=#990000>[3]</font></b>. But in my opinion it's not very likely that there<br />
are used two different types of memory. It's more plausible that there is used<br />
only <u>one</u> EEPROM with memory-areas under different security levels (a de<br />
facto ROM and not EPROM). <br />&nbsp; <br />&nbsp; <br /><b>The memory area $00 - $07<br />
(read-only):</b> </p>
<ul>&nbsp; </p>
<table bgColor=#ffffcc border=1>
<tbody>
<tr>
<td><font size="-2"><b>Byte&nbsp;</b>&nbsp; <br />
          <b>(high / low nibble)</b></font></td>
<td><font size="-2"><b>Description:</b></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">0H,0L</font></center></td>
<td><font size="-2"><tt>Identification of the chip: (<sup>1,2,3</sup>)</tt>&nbsp;<br />
          <br />
          <tt>&nbsp; $4F (very frequently)&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</tt>&nbsp;<br />
          <br />
          <tt>&nbsp; $2F (rarely)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          } 16 byte&nbsp;</tt>&nbsp; <br />
          <tt>&nbsp; $03 (rarely, only Uniqua) }</tt>&nbsp; <br />
          <tt>&nbsp; ---------------------------</tt>&nbsp; <br />
          <tt>&nbsp; $1B, $01 : 64 byte cards</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">1H</font></center></td>
<td><font size="-2"><tt>Constant value: (<sup>1,2,3,4</sup>)</tt>&nbsp;<br />
          <br />
          <tt>&nbsp; $F&nbsp;</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">2H</font></center></td>
<td><font size="-2"><tt>Country: (<sup>1,3</sup>)</tt>&nbsp; <br />
          <tt>&nbsp; $F = Germany (and the Netherlands)&nbsp;</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">3H</font></center></td>
<td><font size="-2"><tt>"test code" = $5 (<sup>1,2,3,4</sup>)</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">3L</font></center></td>
<td><font size="-2"><tt>Card manufacturer</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 0 = Orga Kartensysteme (<sup>1,3</sup>)</tt>&nbsp;<br />
          <br />
          <tt>&nbsp;&nbsp; 1 = Giesecke &amp; Devrient (G&amp;D)</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 2 = Oldenbourg Datensysteme (ODS)</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 3 = Gemplus</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 4 = Solaic</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 5 = Orga, (Uniqua <sup>1,3</sup>)</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 6 = Schlumberger (<sup>1,3</sup>)</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">4H</font></center></td>
<td><font size="-2"><tt>Year of fabrication</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; (4H) + 1990</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; e.g. 3 -&gt; 1993</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">4L</font></center></td>
<td><font size="-2"><tt>Nominal value:</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 3 =&nbsp; 1,50 DM</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 4 =&nbsp; 6,00 DM</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 5 = 12,00 DM</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 6 = 60,00 DM</tt> <tt>(<sup>1,3</sup>)</tt>&nbsp; <br />
          <tt>&nbsp;&nbsp; 7 = 50,00 DM</tt></font></td>
</tr>
<tr>
<td><font size="-2">&nbsp;7H+7L+6H+6L+5H&nbsp;</font></td>
<td><font size="-2"><tt>"internal serial number"</tt></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-2">&nbsp;5L</font></center></td>
<td><font size="-2"><tt>Month of fabrication</tt></font></td>
</tr>
</tbody>
</table>
<p>  &nbsp;<br />
  <br /><sup>1</sup> : From other publications <br /><sup>2</sup> : Discovered with<br />
  my (ca.30) cards <br /><sup>3</sup> : Information not very reliable<br />
  <br /><sup>4</sup> : Meaning unknown <br />&nbsp; <br />(As you can see, there's<br />
  much not very reliable. So who can help me?) <br />Only information without<br />
  footnote is reliable. <img src='http://blog.savel.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </ul>
<p>&nbsp; <br /><b>The memory area $08 - $0C (read /<br />
write):</b>
</p>
<p>That's the 5 byte memory (the so-called octal counter) where the remaining<br />
credit is stored - unfortunately it's a bit difficult to calculate. </p>
<ul>
  <b><font color=#cc0000>1.</font></b> Each byte contains a number of bits, set<br />
  to "1". So a byte can have only 9 different "levels". <br />
  &nbsp;<font size="-1"><b><tt>e.g. 00000011 = 01001000 = 2</tt></b></font> &nbsp;<br />
  <br />
  <b><font color=#cc0000>2.</font></b> Every memory cell from 8 to 12 is attached<br />
  a certain value: <br />
  &nbsp; </p>
<table bgColor=#ffffcc border=1>
<tbody>
<tr>
<td><font size="-1"><b>Memory cell:</b></font></td>
<td><font size="-1"><b>Value:</b></font></td>
</tr>
<tr>
<td> <center><br />
            <font size="-1"> 8</font></center></td>
<td> <center><br />
            <font size="-1">&nbsp;4096 = 8<sup>4</sup>&nbsp;</font></center></td>
</tr>
<tr>
<td> <center><br />
            <font size="-1"> 9</font></center></td>
<td> <center><br />
            <font size="-1"> 512 = 8<sup>3</sup></font></center></td>
</tr>
<tr>
<td> <center><br />
            <font size="-1"> 10</font></center></td>
<td> <center><br />
            <font size="-1"> 64 = 8<sup>2</sup></font></center></td>
</tr>
<tr>
<td> <center><br />
            <font size="-1"> 11</font></center></td>
<td> <center><br />
            <font size="-1"> 8 = 8<sup>1</sup></font></center></td>
</tr>
<tr>
<td> <center><br />
            <font size="-1"> 12</font></center></td>
<td> <center><br />
            <font size="-1"> 1 = 8<sup>0</sup></font></center></td>
</tr>
</tbody>
</table>
<div align="left">&nbsp; <br />
    &nbsp; <br />
    When you have got the number of "1" bits, you can calculate the remaining<br />
    credit. <br />
    &nbsp; <br />
    &nbsp; <b><font color=#660000>Remaining credit = Number of bits in a memory<br />
    cell * Value of the memory cell</font></b> &nbsp; </div>
<p><b><u><font size=-1>Example:</font></u></b> <br />
    &nbsp; <br />
    &nbsp; </p>
<table bgColor=#ffffcc border=1>
<tbody>
<tr>
<td>Byte 8</td>
<td>Byte 9</td>
<td>Byte 10</td>
<td>Byte 11</td>
<td>Byte 12</td>
</tr>
<tr>
<td>&nbsp;01000000&nbsp;</td>
<td>&nbsp;00000000&nbsp;</td>
<td>&nbsp;00001101&nbsp;</td>
<td>&nbsp;00110110&nbsp;</td>
<td>&nbsp;00000000&nbsp;</td>
</tr>
</tbody>
</table>
<p>  <tt>Credit := 4096*1 + 512*0 + 64*3 + 8*4 + 1*0</tt> <br />
  <tt>Credit := 4320</tt> <br />
  &nbsp; <br />
  You get a credit of 4320 units <br />
  For a German telecard you get 4320 "Pfennigs" or 43,20 marks! <br />
  &nbsp; <br />
  &nbsp; <br />
  <b><u><font size=-1>Pascal code:</font></u></b> <br />
  &nbsp; <br />
  A simple function (out of my program) to calculate the credit: <br />
  &nbsp; <br />
  <tt><font size="-2">var Buffer : array[0..15]of byte;&nbsp; (* here the data<br />
  must be read in *)</font></tt> <font size="-2"><br />
  <tt>&nbsp;</tt> <br />
  <tt>Function AddBits(x : byte) : byte;</tt> <br />
  <tt>var i, j : byte;</tt> <br />
  <tt>begin</tt> <br />
  <tt>&nbsp; j := 0;</tt> <br />
  <tt>&nbsp; for i := 0 to 7 do</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp; if ((x shr i) and 1) = 1 then inc(j);</tt> <br />
  <tt>&nbsp; AddBits := j;</tt> <br />
  <tt>end;</tt> <br />
  <tt>&nbsp;</tt> <br />
  <tt>Function Credit : word;</tt> <br />
  <tt>var i, j : byte;</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp; h&nbsp;&nbsp;&nbsp; : word;</tt> <br />
  <tt>begin</tt> <br />
  <tt>&nbsp; h := 0;&nbsp; j := 1;</tt> <br />
  <tt>&nbsp; for i := 1 to 5 do begin</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp; h := ( AddBits( Buffer[13-i] ) * j ) + h;</tt> <br />
  <tt>&nbsp;&nbsp;&nbsp; j := j * 8;</tt> <br />
  <tt>&nbsp; end;</tt> <br />
  <tt>&nbsp; Credit := h;</tt> <br />
  <tt>end;</tt></font></p>
</ul>
<p><b><u><font color=#000000>II.2. The German Medical / Health Card (KVK):</font></u></b><br />
  <br />
  &nbsp; <br />The medical card is also a very<br />
well-known application for chipcards in Germany. Its contents are prescribed by<br />
law and it's employed to identify an insurant and to settle up medical services.<br />
Our Austrian neighbors are now introducing a medical card till 2002, too, which<br />
will be similar to our KVK. <br />&nbsp; <br /><u>The Chip:</u> <br />Every KVK is a<br />
synchronous 256-Byte memorycard. There can be used various protocols. For<br />
example the IC PCB 2032 from Philips Semiconductors uses the 2-wire protocol<br />
(ISO protocol S=10). To my information the SLE 4432 is the same chip from<br />
Siemens. <b>Who knows other chip types / numbers (used in any chipcards)!</b><br />
<br />&nbsp; <br /><u>Reset - Characteristics:</u> <br />Most medical cards use the<br />
I<sup><font size=-2>2</font></sup>C-protocol, but there are 2-wire cards as<br />
well. If you have a 2-wire card you can read the 4 ATR - bytes and then $FF. Now<br />
the first ATR-Byte will clearly identify this card as a 2-wire card and for<br />
further access you will certainly use the 2-wire-routines. An I<sup><font size=-2>2</font></sup>C - card on the other hand is not reacting to an<br />
ISO-reset. You will only read $FFs. In this case you will try to send an<br />
I<sup><font size=-2>2</font></sup>C - START and to read data . If you do not<br />
succeed in doing this, then something is wrong with the contact, or you have an<br />
unknown card. <br />&nbsp; <br /><u>The Memory Structure:</u> <br />
  The relevant data of a KVK is found from address $1E on. That's the case if<br />
  you were able to read in a $60 at this address. With the next byte you calculate<br />
  the start address of the datafields. Unfortunately I don't have safe information<br />
  about this - have a look in the source for the temporary solution, which seems<br />
  to work very fine! All further bytes must then be scanned for tags (a byte &gt;=<br />
  $80). Each tag has a special meaning (see table). Then follows a second byte<br />
  that shows how long the data field is and after this you can read the datafield<br />
  in German ASCII till the next tag appears. The last tag is $C0 for the final<br />
  data field. The next byte shows, how many spaces ($20) follow to "fill up" the<br />
  remaining memory. The last byte (at address $FF) is set to $00. </p>
<table bgColor=#ffffcc border=1>
<caption>The tags</caption>
<tbody>
<tr>
<td><b><u>Tag:</u>&nbsp;</b></td>
<td><b><u>Meaning:</u></b>&nbsp;</td>
</tr>
<tr>
<td>$80</td>
<td>Health Insurance Name</td>
</tr>
<tr>
<td>$81</td>
<td>Health Insurance Number&nbsp;</td>
</tr>
<tr>
<td>$82</td>
<td>Insurant Number</td>
</tr>
<tr>
<td>$83</td>
<td>Insurant Status</td>
</tr>
<tr>
<td>$84</td>
<td>Title</td>
</tr>
<tr>
<td>$85</td>
<td>First Name</td>
</tr>
<tr>
<td>$86</td>
<td>Name Supplement (e.g. "van")</td>
</tr>
<tr>
<td>$87</td>
<td>Surname (U.S.: Last Name)</td>
</tr>
<tr>
<td>$88</td>
<td>Birth Date</td>
</tr>
<tr>
<td>$89</td>
<td>Street</td>
</tr>
<tr>
<td>$8A</td>
<td>Country - Code</td>
</tr>
<tr>
<td>$8B</td>
<td>Postcode (U.S.: Zip Code)</td>
</tr>
<tr>
<td>$8C</td>
<td>Locality (Place)</td>
</tr>
<tr>
<td>$8D</td>
<td>Validity</td>
</tr>
<tr>
<td>$8E</td>
<td>Check Sum (always 1 byte)&nbsp;</td>
</tr>
<tr>
<td>$8F</td>
<td>VKNR</td>
</tr>
<tr>
<td>$90</td>
<td>Supplementary Status</td>
</tr>
<tr>
<td>$C0</td>
<td>final data field:&nbsp; <br />(it contains only space<br />
    characters)&nbsp;</td>
</tr>
</tbody>
</table>
<p>&nbsp; <br />&nbsp;For more, have a<br />
look into the source-code. <br /><b>&nbsp;Has anybody information about how the<br />
check sum is created?</b> <br /><b>&nbsp;(Somebody has told me that it is a<br />
XOR-connection within the data fields)</b> <br />&nbsp; <br />
<font color=#ff0000><b><u>Attention:</u></b> Medical cards can easily be written to.<br />
Don't make any frivolous tests or / and make a backup to be able to restore lost<br />
data.</font> <br />
&nbsp;<br />
<center></p>
<table bgColor=#ccffff border=1>
<caption>
    <b><tt><font size=-2>Circuit V1.1:</font></tt></b><font size="-2">&nbsp;</font><br />
    </caption>
<tbody>
<tr>
<td><font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          o +5V&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          | |&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          | | 100</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          | |&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          +----o&nbsp; Vcc&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; <b style="COLOR: black; BACKGROUND-COLOR: #99ff99">LPT</b>&nbsp;&nbsp;&nbsp;<br />
          |\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _____&nbsp;&nbsp; b |/&nbsp;<br />
          c&nbsp;&nbsp; (PIN 1)&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp; o---| &gt;O----[_____]----|&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;PIN 1&nbsp;&nbsp; |/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          1K&nbsp;&nbsp;&nbsp; T1 |&gt;&nbsp; e&nbsp;&nbsp; (PIN 5)&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          \&nbsp;&nbsp;&nbsp; o&nbsp; GND</font></tt> <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |&nbsp;&nbsp;&nbsp; |</font></tt> <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          ---&nbsp; ---&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#000000>ON / OFF part</font></tt></font></td>
<td><font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp; o +5V</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; |&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; | |</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; | | 10K</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; | |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          <b style="COLOR: black; BACKGROUND-COLOR: #99ff99">LPT</b></font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          PIN 10</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; +------+----o</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; O&nbsp;&nbsp;&nbsp;&nbsp; ___</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;\&nbsp; S1&nbsp;&nbsp; ___ 1n</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; \O&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; ---&nbsp;&nbsp;&nbsp; ---</font></tt>&nbsp; <br />
          <tt>Switch part</tt></font></td>
</tr>
<tr>
<td><font size="-2"><tt><font color=#cc0000>&nbsp;</font></tt>&nbsp; </font><br />
          <center><br />
            <font size="-2">&nbsp; </font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000><b style="COLOR: black; BACKGROUND-COLOR: #99ff99">LPT</b>&nbsp;&nbsp;&nbsp;&nbsp;<br />
            |\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp; o----| &gt;O----o<br />
            RST</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>&nbsp;PIN 14&nbsp;&nbsp; |/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
            (PIN 2)</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2">&nbsp; </font><br />
          </center><br />
          <font size="-2">&nbsp;<tt>Reset</tt></font></td>
<td><font size="-2"><tt><font color=#cc0000>&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp; <b style="COLOR: black; BACKGROUND-COLOR: #99ff99">LPT</b>&nbsp;&nbsp;&nbsp;<br />
          |\</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp; o----| &gt;O----o CLK</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp; PIN 16&nbsp; |/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          (PIN 3)&nbsp;</font></tt>&nbsp; </p>
<p><tt><font color=#000000>Clock</font></tt></p>
<p>          </font></td>
</tr>
<tr>
<td><font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          o +5V&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          | |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          | | 10K&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          | |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          <b style="COLOR: black; BACKGROUND-COLOR: #99ff99">LPT</b></font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          +-----+----| &gt;O---o&nbsp;&nbsp;&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp; <b style="COLOR: black; BACKGROUND-COLOR: #99ff99">LPT</b>&nbsp;&nbsp;&nbsp;<br />
          |\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _____&nbsp;&nbsp; b |/&nbsp;<br />
          c&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; |/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PIN<br />
          11&nbsp;</font></tt>&nbsp; <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp; o----| &gt;O-----[_____]----|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;PIN 17&nbsp; |/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          1K&nbsp;&nbsp;&nbsp; T2 |&gt; e&nbsp;&nbsp;&nbsp; I/O&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          \&nbsp;&nbsp; (PIN 7)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          <tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
          ---&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></tt>&nbsp;<br />
          <br />
          &nbsp;<tt>I/O - part</tt></font></td>
<td> <center><br />
            <font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp; o +5&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>|&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +-----o<br />
            IC+&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>|&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>___&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
            ___&nbsp; 100n&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>|&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>|&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
            +-----o IC -&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>|&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>---&nbsp;</font></tt></font><br />
          </center><br />
          <center><br />
            <font size="-2"><tt><font color=#cc0000>as near as possible !</font></tt></font></center></td>
</tr>
</tbody>
</table>
<p></center>&nbsp;
</p>
<p>Switch S1 is on the "chipcard contact unit". On mine the switch is open if a<br />
card is in the unit. (By the way, I have been leaving away the "ON / OFF Part" :<br />
Vcc for the chipcard is directly connected to the switch S1 - of course now the<br />
10k resistor must be exchanged with a 100 Ohm resistor) <br />&nbsp; <br />A problem<br />
could be the 5V power supply. You can take it from the computer (as I have done<br />
it), e.g. joystick port / keyboard (but it's dangerous, because a 5V<br />
short-circuit will mean the end for your computer). The best would be a voltage<br />
stabilized power supply with the voltage in between 4.75V and 5.25V (see table<br />
6) as ISO demands it, even if there are some chipcard ICs with a higher<br />
tolerance. <br />&nbsp; </p>
<table cols=3 cellPadding=2 width="56%" border=0>
<tbody>
<tr>
<td><b><font size=-1>From the ISO 7816-3 standard:</font></b>&nbsp;<br />
      <br /><b><font size=-1>(see </font><font color=#990000>[4]</font><font color=#000000>)</font></b></td>
<td><b><font size=-1>The Eurochip SLE 443x:</font></b>&nbsp; <br /><b><font size=-1>(e.g. telecard)</font></b></td>
<td><b><font size=-1>PCB2032 memory card IC:</font></b>&nbsp; <br /><b><font size=-1>(e.g. KVK)</font></b></td>
</tr>
<tr>
<td><i><font size=-1>table 6</font></i></td>
<td><i><font size=-1>table 7</font></i></td>
<td><i><font size=-1>table 8</font></i></td>
</tr>
<tr>
<td>
<table bgColor=#ffffcc border=1>
<tbody>
<tr>
<td><b>DC</b></td>
<td>Min.</td>
<td>Max.</td>
</tr>
<tr>
<td>&nbsp;Vcc&nbsp;</td>
<td>
            <center>&nbsp;4,75V&nbsp;</center></td>
<td>&nbsp;5,25V&nbsp;</td>
</tr>
<tr>
<td>&nbsp;Icc</td>
<td>
            <center>-</center></td>
<td>
            <center>&nbsp;200mA&nbsp;</center></td>
</tr>
</tbody>
</table>
<p>&nbsp;</td>
<td>
<table bgColor=#ffffcc border=1>
<tbody>
<tr>
<td><b>DC</b></td>
<td>Min.</td>
<td>Max.</td>
</tr>
<tr>
<td>&nbsp;Vcc&nbsp;</td>
<td>
            <center>&nbsp;4,5V&nbsp;</center></td>
<td>&nbsp;5,5V&nbsp;</td>
</tr>
<tr>
<td>&nbsp;Icc</td>
<td>
            <center>-</center></td>
<td>
            <center>&nbsp;5mA&nbsp;</center></td>
</tr>
</tbody>
</table>
<p>&nbsp;</td>
<td>
<table bgColor=#ffffcc border=1>
<tbody>
<tr>
<td><b>DC</b></td>
<td>Min.</td>
<td>Max.</td>
</tr>
<tr>
<td>&nbsp;Vcc&nbsp;</td>
<td>
            <center>&nbsp;4,5V&nbsp;</center></td>
<td>&nbsp;5,5V&nbsp;</td>
</tr>
<tr>
<td>&nbsp;Icc</td>
<td>
            <center>-</center></td>
<td>
            <center>&nbsp;10mA&nbsp;</center></td>
</tr>
</tbody>
</table>
<p>&nbsp;</td>
</tr>
</tbody>
</table>
<p>Actually<br />
my experience has shown that common cards (tel./KVK) use only about <b><u>5<br />
mA</u></b>. <br />&nbsp; <br />If the <b style="COLOR: black; BACKGROUND-COLOR: #a0ffff">reader</b> shall only read<br />
telephone cards, you can leave transistor T2 (and the two resistors and the<br />
buffer, of course, too) in the I/O - part. You <u>may not</u> leave it, if you<br />
(only) want to read I<sup><font size=-2>2</font></sup>C - cards, too : you have<br />
to send the START / STOP signals!! For T1 and T2 you can use any ordinary NPN<br />
small signal type, e.g. BC547, BC283 etc.
</p>
<p>If you disconnect the <b style="COLOR: black; BACKGROUND-COLOR: #a0ffff">reader</b> and the power supply<br />
  is not off, then the levels on the outputs of the buffers are undefined. (perhaps<br />
  they oscillate) and if a card is inserted, it might be destroyed. If this is<br />
  the case (e.g. with a printer switch) you should solder a 10K pull-down resistor<br />
  at each input of a buffer. <br />
  &nbsp; <br />
  <b><u><font color=#000000>V. Bibliography / Links:</font></u></b>
</p>
<p>1. PICs Kartentricks, Bassem Yahya, <b>ELRAD 1995,</b> Heft 2, S.29-36 <br />
  2. Kartentricks, Peter Laackmann, Marcus Janke, <b>c't 9/93</b>, S.158 </p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savel.org/1999/07/19/historical-article-about-phone-cards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
