Opened 14 years ago
Closed 14 years ago
#147 closed defect (fixed)
card initializing error
Reported by: | Eddie | Owned by: | |
---|---|---|---|
Priority: | major | Component: | |
Severity: | medium | Keywords: | |
Cc: | Sensitive: | no |
Description
reader 2x USB phoenix ( chip ftdi 2232C ), Asus WL-500Gp, Openwrt 8.09.2-RC2
2009/12/05 19:48:12 7624 s version=0.99.4svn, build #706, system=mips-wrt54g-linux, nice=-1
2009/12/05 19:48:12 7626 s reader started (pid=7631, device=/dev/ttyUSB0, detect=none, mhz=357, cardmhz=357)
2009/12/05 19:48:14 7631 r02 card detected
2009/12/05 19:48:18 7631 r02 ATR: 3B 78 12 00 00 A0 C4 06 07 8F F1 90 00
2009/12/05 19:48:21 7631 r02 card system not supported
2009/12/05 19:48:21 7631 r02 card initializing error
problem is probably in ifd_towitoko.c
If I modify it as bellow, reader working OK:
unsigned long
IFD_Towitoko_GetClockRate (IFD * ifd)
{
return IFD_TOWITOKO_CLOCK_RATE;
if (ifd->io->cardmhz == 357 ifd->io->cardmhz == 358)
return (372L * 9600L);
return ifd->io->cardmhz * 10000L;
else
return ifd->io->cardmhz * 10000L;
}
2009/12/05 20:00:53 7691 s reader started (pid=7696, device=/dev/ttyUSB0, detect=none, mhz=357, cardmhz=357)
2009/12/05 20:00:56 7696 r02 card detected
2009/12/05 20:00:59 7696 r02 ATR: 3B 78 12 00 00 A0 C4 06 07 8F F1 90 00
2009/12/05 20:01:01 7696 r02 type: cryptoworks, caid: 0D0F, ascii serial: xxxxxxxxx, hex serial: xxxxxxxx
2009/12/05 20:01:01 7696 r02 issuer: GITAL, id: 04, bios: v6, pin: unknown, mfid: 3F64
2009/12/05 20:01:01 7696 r02 providers: 4 (04,08,0C,10)
2009/12/05 20:01:01 7696 r02 ready for requests
2009/12/05 20:01:01 7696 r02 card detected
2009/12/05 20:01:01 7696 r02 type: cryptoworks
2009/12/05 20:01:01 7696 r02 provider: 1, id: 04, name: Public TV
on svn 952 working OK, fixed.