Hi,
> As I understand, every smart card has a unique ID > Unfortunately, that single statement is not true. Well, it's not even true at the chip level (I guess every manufacturer has its own system) but there is no standard way to get this "unique number" in the same manner for all cards in the world. Each card model *may* support an unique id, but it is specific to the card model, as well as the method to retrieve it. that is accessible without security. > > I need to read this ID from any card within a reader. I have spent some, > but not enough, quality time with the ISO 7816-4 spec and understand the > formation of smart card request and response APDUs (at least I think I do). > I have read that I need to use the get data command as follows: > > FF CA 00 00 00 > Nice. You need to spend more time on ISO7816 as the FF class is invalid, it's not a card command but (maybe) a reader command or something else. Moreover if such a magic command existed, someone would have mentioned it somewhere in google. > > However, this fails to provide the correct ID. > Sure. Do you at least know what *is* the correct ID you're expecting? :-) > Any help on this would be greatly appreciated. > > First detect the card model in some way, then pray for the card to provide a mean to identify itself, then issue the appropriate valid commands to get it. Regards Sebastien
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
