nimai / Project-BITCH

Fidelity card with RFID technology
4 stars 3 forks source link

Design discussion #3

Open bernardpaulus opened 12 years ago

bernardpaulus commented 12 years ago

Hi! We have to talk about the architecture of our solution.

I've seen what Spartan proposes. I trhink it's ok to follows the requirements, but, we can use the card service

http://pyscard.sourceforge.net/pyscard-usersguide.html#cardcentric

Btw, i found (0e2a2a3596) why the card request does not work : Wrong ATR.

To get the ATR, see /usr/share/doc/python-pyscard/examples/Examples/framework/sample_CustomCardType.py (if you installed pyscard using the debian package. The file can alternatively be found at: http://pyscard.svn.sourceforge.net/viewvc/pyscard/trunk/pyscard/src/smartcard/Examples/framework/ )

spartan05 commented 12 years ago

Hi! Actually I also tried the commented piece of code with card type "AnyType" and it didn't work either. Since pcsc_scan is not able to detect any card either on my laptop, I assumed either my installation has a problem, or the ACR122 reader needs to do polling to detect a card. By the way, if it works for you, we can use the card centric approach.

bernardpaulus commented 12 years ago

err.. looks like your problem with the reader is back... the pcsc_scan command should detect your reader.

spartan05 commented 12 years ago

The pcsc_scan command is able to detect my reader but it should also detect cards in the range of the reader and print a line when it occurs. This doesn't work on my laptop. Does it work for you?

bernardpaulus commented 12 years ago

opened https://github.com/nimai/Project-BITCH/issues/4 for this

bernardpaulus commented 12 years ago

there is also the possibility of using an observer like in sample_MonitorCardsAndTransmit.py