Le vendredi 13 mai 2011 à 14:20 +0200, Ludovic Rousseau a écrit :
> The problem is that the Feitian reader is "bogus" and announces rates
> but only ONE rate is announced: 10752 bauds
> See http://pcsclite.alioth.debian.org/ccid/readers/Feitian_SCR310.txt
> 
> One easy solution is to fix the reader firmware to either report no
> rate at all or report all the supported rates. 

The reader is not bugus, it reports:
  dwDataRate: 10752 bps
  dwMaxDataRate: 600000 bps
  bNumDataRatesSupported: 0 (will use whatever is returned)
   Support 10752 bps

This is quite explicit that the minimum rate is 10752 and maximum rate
is 600000. Furthermore, dwFeatures indicates autobaud features.

dwFeatures: 0x00010230
   ....10 Automatic ICC clock frequency change according to parameters
   ....20 Automatic baud rate change according to frequency and Fi, Di
params
   ..02.. NAD value other than 00 accepted (T=1)

So it makes sense that libccid is a little bit less picky about rates.
Windows 7 knows how to handle this kind of situation.

My patch handles this scenario:

Check whether the rate is reported.
If not, look at dwFeatures.

What's wrong with that?

Kind regards,
-- 
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to