File: ctbcs.sgml

package info (click to toggle)
towitoko 2.0.7-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,500 kB
  • ctags: 885
  • sloc: ansic: 9,128; sh: 7,229; makefile: 122
file content (1062 lines) | stat: -rw-r--r-- 21,002 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">

<refentry>
 
<refentryinfo>
        <address><email>cprados@yahoo.com</email></address>
        <author>
        <firstname>Carlos</firstname>
        <surname>Prados</surname>
        </author>
        <copyright><year>2001</year><holder>Carlos Prados</holder></copyright>
        <date>06-03-2001</date>
</refentryinfo>
 
<refmeta>
        <refentrytitle>CT-BCS</refentrytitle>
        <manvolnum>3</manvolnum>
</refmeta>

<refnamediv>
        <refname>CT-BCS</refname>
        <refpurpose>
	Cardterminal basic command set for integrated circuit card 
	applications.
	</refpurpose>
</refnamediv>

<refsect1>

	<title>DESCRIPTION</title>
	<para>
	This manpage describes the subset of the Cardterminal Basic Command Set
	(CT-BCS) used to control cardterminals with one or more integrated 
	circuit card slots, without key pad and display. This manpage is not a 
	complete specification of the CT-BCS, but a general overview of the 
	most common functionalities.
	</para> 

	<para>
	The CT-BCS commands are constructed in compliance with 
	<productname>ISO/IEC 7816-4</productname> interindustry commands and 
	are used to control cardterminal utilizing the CT-API function 
	<function>CT_data()</function>.
	</para>

</refsect1>

<refsect1>
	<title>COMMAND STRUCTURE</title>
	
	<para>
	A CT-BCS command is an array of bytes that is sent to the cardterminal 
	to perform an administrative action. The CT-BCS response is an array
	of bytes returned by the cardterminal that informs of the completion 
	status of the action requested.
	</para>

	<para>
	The following diagram shows the general structure of a CT-BCS command:
	</para>

	<programlisting width="46">
|<------------------------------------------>|
|    Header (4 Bytes)     and body           |
|      (mandatory)       (optional)          |
|<----------------->|<---------------------->|
|___________________|________________________|
|CLA |INS |P1  |P2  |Lc  |Data          |Le  |
|____|____|____|____|____|______________|____|
	</programlisting>

	<para>
	The following diagram shows the general structure of a CT-BCS 
	response:
	</para>

	<programlisting width="46">
|<------------------------------>|<--------->|
|           Body                    Trailer  |
|        (optional)                (2 Bytes) |
|                                 (mandatory)|
|________________________________|___________|
|Data                            |SW1-SW2    |
|________________________________|___________|
	</programlisting>

	<para>
	The fields within a CT-BCS command and response are equivalent to those 
	defined by ISO/IEC 7816-4:
	</para>

	<variablelist>

		<varlistentry>
		<term>CLA</term>
		<listitem>
		<para>
		Class. The CLA value used for CT-BCS commands is 0x20.
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>INS</term>
		<listitem>
		<para>
		Instruction. Defines the action to be performed by the
		cardterminal.
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P1, P2</term>
		<listitem>
		<para>
		Command parameters 1 and 2.
		</para>
		</listitem>
		</varlistentry>
	
		<varlistentry>
		<term>Lc</term>
		<listitem>
		<para>
		Length of command data field.
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Le</term>
		<listitem>
		<para>
		Length of expected data:
		</para>
		<para>
		Case 1: No command data, no response data (no Lc and no Le).
		</para>
		<para>
		Case 2: Command data, no response data (0<=Lc<=254 and no Le).
		</para>
		<para>
		Case 3: No command data, response data (no Lc and 0<=Le<=254).
		</para>
		<para>
		Case 4: Command data, response data (0<=Lc<=254 and 0<=Le<=254)
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>SW1, SW2</term>
		<listitem>
		<para>
		Status bytes. Completion status of the command.
		</para>
		</listitem>
		</varlistentry>

	</variablelist>

	<para>
	The address value 0x01 (CT) shall be used as destination 
	address (dad) given to <function>CT_data()</function> when sending 
	CT-BCS commands (See CT_data (3)). 
	</para>

	<para>
	The following commands are present in every CT-BCS implementation:
	</para>

	<table frame="all" colsep="1">
		<title>Basic CT commands</title>
		
		<tgroup cols="2">
		<colspec align="left">
		<colspec align="right">

		<thead>
			<row>
			<entry>Cardterminal Command</entry>
			<entry>INS Code</entry>
			</row>
		</thead>

		<tbody>
			<row>
			<entry>RESET CT</entry>
			<entry>0x11</entry>
			</row>

			<row>
			<entry>REQUEST ICC</entry>
			<entry>0x12</entry>
			</row>

			<row>
			<entry>GET STATUS</entry>
			<entry>0x13</entry>
			</row>

			<row>
			<entry>EJECT ICC</entry>
			<entry>0x15</entry>
			</row>
		</tbody>

		</tgroup>
	</table>

	<para>
	The following general return codes SW1-SW2 may occur:
	</para>
 
	<table frame="all" colsep ="1">
		<title>General return codes</title>
		
		<tgroup COLS="2">
		<colspec align="right">
		<colspec align="left">

		<thead>
			<row>
			<entry>SW1-SW2</entry>
			<entry>Description</entry>
			</row>
		</thead>
		<tbody>
			<row>
			<entry>0x6700</entry>
			<entry>Wrong length</entry>
			</row>

			<row>
			<entry>0x6900</entry>
			<entry>Command not allowed</entry>
			</row>

			<row>
			<entry>0x6A00</entry>
			<entry>Wrong parameters P1, P2</entry>
			</row>

			<row>
			<entry>0x6D00</entry>
			<entry>Wrong instruction</entry>
			</row>

			<row>
			<entry>0x6E00</entry>
			<entry>Class not supported</entry>
			</row>
		</tbody>
		</tgroup>
	</table>

</refsect1>

<refsect1>
	<title>FUNCTIONAL UNITS</title>

	<para>
	Functional units are entities that can be addressed as target of 
	CT-BCS commands. In some CT-BCS commands a target functional unit 
	needs to be specified.
	</para>
 
	<table frame="all" colsep="1">
		<title>Functional units</title>
		
		<tgroup COLS="2">
		<colspec align="left">
		<colspec align="right">

		<thead>
			<row>
			<entry>Functional Unit</entry>
			<entry>Coding</entry>
			</row>
		</thead>

		<tbody>
			<row>
			<entry>CT kernel</entry>
			<entry>0x00</entry>
			</row>

			<row>
			<entry>CT/ICC slot 1</entry>
			<entry>0x01</entry>
			</row>

			<row>
			<entry>CT/ICC slot 2</entry>
			<entry>0x02</entry>
			</row>

			<row>
			<entry>\.\.\.</entry>
			<entry>\.\.\.</entry>
			</row>

			<row>
			<entry>CT/ICC slot 14</entry>
			<entry>0x0E</entry>
			</row>

		</tbody>

		</tgroup>
	</table>

	<para>
	Support for slots 2-14 depends on the cardterminal. Functional units 
	for keypad and display are defined for some cardterminals but are
	not described here.
	</para>

</refsect1>

<refsect1>
	<title>COMMANDS DESCRIPTION</title>

	<refsect2>

	<title>RESET CT</title>

	<para>
	The RESET CT command asks the cardterminal to perform a reset of the 
	specified functional unit. If the functional unit is the CT kernel, a 
	software reset is carried out, meaning that all status information 
	(f.i. information of inserted cards) is cleared and gathered again. 
	For ICC functional units, an card reset is performed.
	</para>

	<para>
	Optionally the answer to reset of the functional unit is returned
	in the response data.
	</para>

	<para>
	A RESET CT command can be issued after initialization of the 
	cardterminal or after the occurrence of a communication error.
	</para>
	
	<para>
	The command structure is as follows:
	</para>

	<variablelist>
		<varlistentry>
		<term>CLA</term>
		<listitem>
		<para>0x20</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>INS</term>
		<listitem>
		<para>0x11 (=RESET CT)</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P1</term>
		<listitem>
		<para>Functional unit:</para>
		<para>0x00 = CT</para>
		<para>0x01 - 0x0E = ICC Interface 1-14</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P2</term>
		<listitem>
		<para>Command qualifier:</para>
		<para>In case P1 = 0x00:</para>
		<para>0x00 = No response</para>
		<para>In case P1 = 0x01 - 0x0E:</para>
		<para>0x00 = No response data</para>
		<para>0x01 = Return complete ATR</para>
		<para>0x02 = Return Historical Bytes</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Lc field</term>
		<listitem>
		<para>Empty</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Le field</term>
		<listitem>
		<para>
		Empty or 0x00: return full length of requested information
		</para>
		</listitem>
		</varlistentry>

	</variablelist>

	<para>
	The response structure is as follows:
	</para>
	
	<variablelist>
		<varlistentry>
		<term>Data</term>
		<listitem>
		<para>Empty, ATR or Historical Bytes</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>SW1-SW2</term>
		<listitem>
		<para>Status Bytes</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	When functional unit is CT (0x00) the following status bytes can be
	returned:
	</para>

	<variablelist>
		<varlistentry>
		<term>0x9000</term>
		<listitem>
		<para>Reset successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6400</term>
		<listitem>
		<para>Reset not successful</para>
		</listitem>
		</varlistentry>

	</variablelist>

	<para>
	When functional unit is a ICC slot (0x01 - 0x0E) the following status 
	bytes can be returned:
	</para>

	<variablelist>
		<varlistentry>
		<term>0x9000</term>
		<listitem>
		<para>Synchronous ICC, reset successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x9001</term>
		<listitem>
		<para>Asynchronous ICC, reset successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6400</term>
		<listitem>
		<para>Reset not successful</para>
		</listitem>
		</varlistentry>
	</variablelist>

	</refsect2>

	<refsect2>
		
	<title>REQUEST ICC</title>
	
	<para>
	The REQUEST ICC command asks the cardterminal to wait for the presence 
	of an ICC on the specified cardterminal slot during a specified time 
	limit. The command synchronously blocks the caller application unless
	time limit 0 is specified. When an ICC is presented it is automatically
	activated and reset.
	</para>
 
	<para>
	The command structure is as follows:
	</para>

	<variablelist>
		<varlistentry>
		<term>CLA</term>
		<listitem>
		<para>0x20</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>INS</term>
		<listitem>
		<para>0x12 (=REQUEST ICC)</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P1</term>
		<listitem>
		<para>Functional unit:</para>
		<para>0x01 - 0x0E = ICC-Interface 1 - 14</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P2</term>
		<listitem>
		<para>
		Command qualifier: Request handling instructions for the CT
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Lc field</term>
		<listitem>
		<para>Empty or length of subsequent data field</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Data field</term>
		<listitem>
		<para>
		Empty (= immediate response required) or max. waiting
		time in seconds (1 byte, binary coding) for presenting the ICC
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Le field</term>
		<listitem>
		<para>
		Empty or 0x00 =  Return full length of requested information
		</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The parameter P2 carries the request handling instructions for the 
	CT. The value of P2 is constructed of two 4-bits subfields:
	</para>

	<variablelist>
		<varlistentry>
		<term>Bits b8-b5</term>
		<listitem>
		<itemizedlist>
			<listitem>
			<para>0x0 = No meaning</para>
			</listitem>

			<listitem>
			<para>Other values reserved for future use</para>
			</listitem>
		</itemizedlist>
		</listitem> 
		</varlistentry>

		<varlistentry>
		<term>Bits b4-b1</term>
		<listitem>
		<itemizedlist>
			<listitem>
			<para>0x0 = No response data</para>
			</listitem>

			<listitem>
			<para>0x1 = Return complete ATR</para>
			</listitem>

			<listitem>
			<para>0x2 = Return Historical Bytes</para>
			</listitem>
		</itemizedlist>
		</listitem> 
		</varlistentry>
	</variablelist>

	<para>
	The response structure is as follows:
	</para>
	
	<variablelist>
		<varlistentry>
		<term>Data</term>
		<listitem>
		<para>Empty, ATR or Historical Bytes</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>SW1-SW2</term>
		<listitem>
		<para>Status Bytes</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The following status bytes can be returned:
	</para>

	<variablelist>
		<varlistentry>
		<term>0x9000</term>
		<listitem>
		<para>Synchronous ICC presented, reset successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x9001</term>
		<listitem>
		<para>Asynchronous ICC, reset successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6200</term>
		<listitem>
		<para>No card presented within specified time</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6201</term>
		<listitem>
		<para>Card already present and activated</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6400</term>
		<listitem>
		<para>Reset not successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6900</term>
		<listitem>
		<para>Command with timer not supported</para>
		</listitem>
		</varlistentry>
	</variablelist>

	</refsect2>

	<refsect2>
		
	<title>GET STATUS</title>
	
	<para>
	The GET STATUS command is used to gather cardterminal manufacturer 
	information and ICC status information from the cardterminal.
	The information is represented by TLV (tag, length, value) encoded 
	data objects. The tag of the data object to be retrieved is specified
	in the command and the value is returned in the response.
	</para>
	
	<para>
	The command structure is as follows:
	</para>

	<variablelist>
		<varlistentry>
		<term>CLA</term>
		<listitem>
		<para>0x20</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>INS</term>
		<listitem>
		<para>0x13 (=GET STATUS)</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P1</term>
		<listitem>
		<para>Functional unit:</para>
		<para>0x00 = CT</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P2</term>
		<listitem>
		<para>
		Command qualifier: Tag of data object to be returned
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Lc field</term>
		<listitem>
		<para>Empty</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Data field</term>
		<listitem>
		<para>Empty</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Le field</term>
		<listitem>
		<para>
		0x00 =  Return full length of requested information
		</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The response structure is as follows:
	</para>
	
	<variablelist>
		<varlistentry>
		<term>Data</term>
		<listitem>
		<para>
		Status information (only value field of data object)
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>SW1-SW2</term>
		<listitem>
		<para>Status Bytes</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The following data objects are defined. Note that only value field
	is returned in the response:
	</para>

	<variablelist>
		<varlistentry>
		<term>Cardterminal manufacturer data object</term>
		<listitem>
		<itemizedlist>
			<listitem>
			<para>Tag = 0x46</para>
			</listitem>

			<listitem>
			<para>Length &gt;= 15</para>
			</listitem>

			<listitem>
			<para>Value:</para>

			<para>CTM: Cardterminal manufacturer (5 bytes
			ASCII encoded). It consists of 2 bytes with the
			country code and 3 bytes with the manufacturer 
			acronym</para>

			<para>CTT: Cardterminal type (5 bytes ASCII encoded).
			The value is manufacturer dependant</para>
			
			<para>CTSV: Cardterminal software version (5 bytes
			ASCII encoded). The value is manufacturer dependant
			</para>
			
			<para>DD: Discretionary data (any number of bytes 
			including 0)
			</para>
			</listitem>
		</itemizedlist>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>ICC status data object</term>
		<listitem>
		<itemizedlist>
			<listitem>
			<para>Tag = 0x80</para>
			</listitem>

			<listitem>
			<para>Length</para>
			</listitem>
			
			<listitem>
			<para>Value: One ICC status byte per ICC slot in the 
			cardterminal. 
			</para>
			
			<para>
			If b8-b1 = 0x00 then no ICC is present in the slot. 
			</para>
			
			<para>
			If b1 = 1 and ICC is present in the slot and the bytes 
			b3-b2 indicate whether the ICC is electrically 
			connected (value 10) or electrically disconnected 
			(value 01).
			</para>
		
			</listitem>
		</itemizedlist>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The following status bytes can be returned:
	</para>

	<variablelist>
		<varlistentry>
		<term>0x9000</term>
		<listitem>
		<para>Command successful</para>
		</listitem>
		</varlistentry>
	</variablelist>

	</refsect2>

	<refsect2>
		
	<title>EJECT ICC</title>
	
	<para>
	The EJECT ICC command asks the cardterminal to deactivate the ICC. It
	must be used at the end of the communication with the card or when a
	irreparable communication error occur.
	</para>
	
	<para>
	The command structure is as follows:
	</para>

	<variablelist>
		<varlistentry>
		<term>CLA</term>
		<listitem>
		<para>0x20</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>INS</term>
		<listitem>
		<para>0x15 (=EJECT ICC)</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P1</term>
		<listitem>
		<para>Functional unit:</para>
		<para>0x01 - 0x0E = ICC-Interface 1-14</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>P2</term>
		<listitem>
		<para>
		Command qualifier: Eject handling instructions for the CT 
		(0x00 for cardterminals without keypad and display)
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Lc field</term>
		<listitem>
		<para>Empty or length of subsequent data field</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Data field</term>
		<listitem>
		<para>Empty or time in seconds for removing the ICC</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>Le field</term>
		<listitem>
		<para>
		Empty
		</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The response structure is as follows:
	</para>

	<variablelist>
		<varlistentry>
		<term>Data</term>
		<listitem>
		<para>
		Empty
		</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>SW1-SW2</term>
		<listitem>
		<para>Status Bytes</para>
		</listitem>
		</varlistentry>
	</variablelist>

	<para>
	The following status bytes can be returned
	</para>

	<variablelist>
		<varlistentry>
		<term>0x9000</term>
		<listitem>
		<para>Command successful</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x9001</term>
		<listitem>
		<para>Command successful, card removed</para>
		</listitem>
		</varlistentry>

		<varlistentry>
		<term>0x6200</term>
		<listitem>
		<para>Card not removed within specified time</para>
		</listitem>
		</varlistentry>
	</variablelist>

	</refsect2>

</refsect1>

<refsect1>
 
        <title>SEE ALSO</title>
        <para>ctapi (3).</para>
 
        <para>
	The <productname>MKT</productname> (Multifunktionale KartenTerminals)
        specifications, available for download from <acronym>Teletrust</acronym>
        web site 
	<ulink url="http://www.teletrust.de">http://www.teletrust.de</ulink>.
        In special the documents:</para>
 
        <variablelist>
 
        <varlistentry>
        <term>Part 3:</term>
        <listitem>
        <para>CT-API. Cardterminal Applications Programming Interface.
        </para>
        </listitem>
        </varlistentry>
 
        <varlistentry>
        <term>Part 4:</term>
        <listitem>
        <para>CT-BCS. Cardterminal Basic Command Set.
        </para>
        </listitem>
        </varlistentry>
 
        <varlistentry>
        <term>Part 7:</term>
        <listitem>
        <para>
	IC cards with synchronous transmission Part3: Usage of interindustry 
	Commands.
        </para>
        </listitem>
        </varlistentry>
 
        </variablelist>

        <para>
        ISO/IEC 7816: <productname>Identification cards - Integrated circuit(s)
        cards with contacts</productname>:
        </para>
 
        <variablelist>
 
        <varlistentry>
        <term>Part 4:</term>
        <listitem>
        <para>
        Interindustry commands for interchange.
        </para>
        </listitem>
        </varlistentry>
 
        </variablelist>

</refsect1>

<refsect1>
 
        <title>AUTHOR</title>
 
        <para>
        This manual page was written by Carlos Prados 
	<email>&lt;cprados@yahoo.com&gt;</email>.
        </para>
 
</refsect1>

</refentry>
 
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->