Changeset 1085
- Timestamp:
- 01/06/10 13:13:40 (14 years ago)
- Location:
- trunk/csctapi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_towitoko.c
r1073 r1085 620 620 req_ts.tv_nsec = 50000000; 621 621 nanosleep (&req_ts, NULL); 622 if (ioctl(ifd->io->fd, IOCTL_SET_ATR_READY)<0) 623 return IFD_TOWITOKO_IO_ERROR; 622 624 return IFD_TOWITOKO_OK; 623 625 } -
trunk/csctapi/pps.c
r1071 r1085 187 187 ATR_GetProtocolType(atr,1,&(pps->parameters.t)); //get protocol from TD1 188 188 bool NeedsPTS = ((pps->parameters.t != 14) && (numprottype > 1 || (atr->ib[0][ATR_INTERFACE_BYTE_TA].present == TRUE && atr->ib[0][ATR_INTERFACE_BYTE_TA].value != 0x11) || pps->parameters.n == 255)); //needs PTS according to ISO 7816 , SCI gets stuck on our PTS 189 if (NeedsPTS && (pps->icc->ifd->io->com != RTYP_SCI)) {189 if (NeedsPTS) { 190 190 // PTSS PTS0 PTS1 PTS2 PTS3 PCK 191 191 // PTSS PTS0 PTS1 PCK … … 215 215 } 216 216 217 //FIXME Currently InitICC sets baudrate to 9600 for all T14 cards, which is the old behaviour... 217 //FIXME Currently InitICC sets baudrate to 9600 for all T14 cards, which is the old behaviour...; for SCI TA1 is obeyed... 218 218 if (!PPS_success) {//last PPS not succesfull 219 219 BYTE TA1; … … 229 229 protocol_selected = 1; 230 230 231 if (NeedsPTS) { //FIXME we MUST discover PTS routine for Dreambox reader, now all cards in DBreaders which need PTS come here!!!231 if (NeedsPTS) { 232 232 if ((pps->parameters.d == 32) || (pps->parameters.d == 12) || (pps->parameters.d == 20)) 233 233 pps->parameters.d = 0; //behave conform "old" atr_d_table; viaccess cards that fail PTS need this … … 235 235 /////Here all non-ISO behaviour 236 236 /////End all non-ISO behaviour 237 if (pps->icc->ifd->io->com == RTYP_SCI) {238 //// Here all fixes that are needed until PTS routine for Dreambox is found239 //// End all fixes that are needed until PTS routine for Dreambox is found240 }241 237 242 238 cs_debug("No PTS %s, selected protocol 1: T%i, F=%.0f, D=%.6f, N=%.0f\n", NeedsPTS?"happened":"needed", pps->parameters.t, (double) atr_f_table[pps->parameters.FI], pps->parameters.d, pps->parameters.n); … … 424 420 return PPS_ICC_ERROR; 425 421 426 if (ioctl(pps->icc->ifd->io->fd, IOCTL_SET_ATR_READY)<0)427 return IFD_TOWITOKO_IO_ERROR;428 422 } 429 423 #endif
Note:
See TracChangeset
for help on using the changeset viewer.