Detecting whether the card is present or not in a smart card reader

arduinosmart-card

Recently I bought a 32320 Smart Card Reader. I had no trouble making the circuit, but I could not figure out what command to use to tell if the card is in or not. Any ideas?

Best Answer

The code examples for the card reader is well hidden on their site. Nice products. hard to find docs. Look for the smart card code examples.
enter image description here

And dont worry if you dont give us enough information, It was hard for me to find it too.

**'' Define Smart Card connections  
' allows non-contiguous pin usage  
  cd := cdpin 
 dira[cd] := 0 
 pub detect | ok 
'' Detects insertion and presence of Smart Card  
  if (ina[cd] == 1)               ' inserted?  
    start                         ' check card  
   ok := (write($A0) == ACK)  
   stop  
  else  
  ok := false  
 return ok  *

http://obex.parallax.com/objects/649/

enter image description here http://www.parallax.com/Portals/0/Downloads/docs/prod/rf/32320-SmartCardReader-v1.0.pdf