User Tools

Site Tools


getac:startex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
getac:startex [22/11/2025 20:22] andrewgetac:startex [22/11/2025 21:31] (current) – [Smartcard reader] andrew
Line 46: Line 46:
  
  
-====== Smartcard reader ======+===== Smartcard reader =====
  
  
Line 56: Line 56:
  
  
 +<code>
 +# pcsc_scan
 +PC/SC device scanner
 +V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
 +Using reader plug'n play mechanism
 +Scanning present readers...
 +0: Virtual PCD 00 00
 +1: Virtual PCD 00 01
 +2: Alcor Micro AU9540 00 00
 + 
 +
 + Reader 0: Virtual PCD 00 00
 +  Event number: 0
 +  Card state: Card removed, 
 + Reader 1: Virtual PCD 00 01
 +  Event number: 0
 +  Card state: Card removed, 
 + Reader 2: Alcor Micro AU9540 00 00
 +  Event number: 0
 +  Card state: Card removed, 
 + 
 +</code>
 +
 +Waiting for card to be inserted
 +
 +Card inserted upside down so no electrical contact
 +
 +<code>
 + Reader 2: Alcor Micro AU9540 00 00
 +  Event number: 1
 +  Card state: Card inserted, Unresponsive card, 
 +   
 +
 + Reader 2: Alcor Micro AU9540 00 00
 +  Event number: 2
 +  Card state: Card removed, 
 +
 +<code>
 +
 +Card the right way up
 +<code>   
 + Reader 2: Alcor Micro AU9540 00 00
 +  Event number: 3
 +  Card state: Card inserted, 
 +  ATR: 3B 6B 00 00 00 31 C1 64 09 78 61 31 0F 90 00
 +
 +ATR: 3B 6B 00 00 00 31 C1 64 09 78 61 31 0F 90 00
 ++ TS = 3B --> Direct Convention
 ++ T0 = 6B, Y(1): 0110, K: 11 (historical bytes)
 +  TB(1) = 00 --> VPP is not electrically connected
 +  TC(1) = 00 --> Extra guard time: 0
 ++ Historical bytes: 00 31 C1 64 09 78 61 31 0F 90 00
 +  Category indicator byte: 00 (compact TLV data object)
 +    Tag: 3, len: 1 (card service data byte)
 +      Card service data byte: C1
 +        - Application selection: by full DF name
 +        - Application selection: by partial DF name
 +        - EF.DIR and EF.ATR access services: by GET RECORD(s) command
 +        - Card without MF
 +    Tag: 6, len: 4 (pre-issuing data)
 +      Data: 09 78 61 31
 +    Mandatory status indicator (3 last bytes)
 +      LCS (life card cycle): 0F (unknown)
 +      SW: 9000 (Normal processing.)
 +
 +Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
 +3B 6B 00 00 00 31 C1 64 09 78 61 31 0F 90 00
 + Mastercard (Bank)   <-------------------------- Correct!
 +
 + Reader 2: Alcor Micro AU9540 00 00
 +  Event number: 4
 +  Card state: Card removed, 
 +
 +</code>
 +
 +
 +====== NFC ======
 +
 +
 +<code>
 +# apt install libnfc-bin libnfc6 mrtdreader
 +...edited...
 +The following additional packages will be installed:
 +  libmrtd0t64 libusb-0.1-4
 +
 +The following NEW packages will be installed:
 +  libmrtd0t64 libnfc-bin libnfc6 libusb-0.1-4 mrtdreader
 +
 +<code>
getac/startex.1763842951.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki