Coder Social home page Coder Social logo

pypassport's Issues

Card Reader is not connect to PCSC

Dear roeften

I am testing on pypassport for python3

I got error

Type "help", "copyright", "credits" or "license" for more information.
>>> from pypassport.reader import ReaderManager
>>> from pypassport.epassport import EPassport, mrz
>>> r = ReaderManager()
>>> reader = r.waitForCard()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/scott/pypassport/pypassport/reader.py", line 368, in waitForCard
    raise TimeOutException("Time-out")
pypassport.reader.TimeOutException: Time-out

but PCSC is detect to card

pypassport$ pcsc_scan 
Using reader plug'n play mechanism
Scanning present readers...
0: ACS ACR122U 00 00
 
Sun Jul 18 07:57:22 2021
 Reader 0: ACS ACR122U 00 00
  Event number: 0
  Card state: Card inserted, 
  ATR: 3B 8C 80 01 50 49 7A 51 77 E1 F3 5E 11 77 81 A5 46

ATR: 3B 8C 80 01 50 49 7A 51 77 E1 F3 5E 11 77 81 A5 46
+ TS = 3B --> Direct Convention
+ T0 = 8C, Y(1): 1000, K: 12 (historical bytes)
  TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0 
-----
  TD(2) = 01 --> Y(i+1) = 0000, Protocol T = 1 
-----
+ Historical bytes: 50 49 7A 51 77 E1 F3 5E 11 77 81 A5
  Category indicator byte: 50 (proprietary format)
+ TCK = 46 (correct checksum)

Possibly identified card (using /home/scott/.cache/smartcard_list.txt):
	NONE

Your card is not present in the database.
Please submit your unknown card at:
https://smartcard-atr.apdu.fr/parse?ATR=3B8C800150497A5177E1F35E117781A546

I think MRZ is difference country or passport book and card ?
My US Passport is difference with your demo.

#MRZ_bob       = "EH123456<0BEL8510035M1508075<<<<<<<<<<<<<<02"
#MRZ_oli       = "EH276509<0BEL8406158M1302217<<<<<<<<<<<<<<04"
#MRZ_helen     = "EF486766<8BEL8803023F1103056<<<<<<<<<<<<<<00"
#MRZ_fred      = "EG491433<0BEL8305099M1208157<<<<<<<<<<<<<<04"
#MRZ_camille   = "08CH022724FRA8706021F1807066<<<<<<<<<<<<<<06"
#MRZ_nico      = "EH288866<9BEL8605113M1303269<<<<<<<<<<<<<<00"
#MRZ_caro      = "EH266828<7BEL8405243F1302206<<<<<<<<<<<<<<02"
#MRZ_n =         "7065198411GBR9703072M1206256<<<<<<<<<<<<<<02"

#Remplire la 2e ligne ici

Please suggest or anything else.
BR

Guide to generate passport

I have no HW here, could you please guide me how to use dump reader.
I miss jf.jpg and jfSignature.jpg

Could you please provide me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.