I tried Reflex 62/64 driver for SCR 60 with some changes on
communication protocol, but reader gave no response. If I put some lines
in IO_Write() serial.c, the driver works.   

// New lines added

  FD_ZERO(&rfds);
  FD_SET(handle, &rfds);
  rval = select (FD_SETSIZE, &rfds, NULL, NULL,
&tv);                         

// New lines end here

  tcflush(handle, TCIFLUSH);
  
  if (write(handle, &c, 1) == 1) {                
     printf("Data write: %c\n",c);
     return TRUE;
  }

The difference between two readers is: for commands Reflex sends one
byte and then will read one byte. But for SCR 60 it sends several bytes
as a command, and then read bytes. Is this the reason that causes the
above change? 


Thanks

Jenny
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to