[EMAIL PROTECTED] wrote:
> Hi,
> I have chosen to implement the driver for my hardware starting from
> openct-phoenix-1.0 driver.
> The pcscd seem to work fine. The output of 
> testpcsc program is the following:
> -------------------------------------------------------------------------------
> ./testpcsc
>
> MUSCLE PC/SC Lite unitary test Program
>
> THIS PROGRAM IS NOT 
> DESIGNED AS A TESTING TOOL FOR END USERS!
> Do NOT use it unless you 
> really know what you do.
>
> Testing SCardEstablishContext    : Command 
> successful.
> Testing SCardGetStatusChange
> Please insert a working 
> reader   : Command successful.
> Testing SCardListReaderGroups    : 
> Command successful.
> Group 01: SCard$DefaultReaders
> Testing 
> SCardListReaders         : Command successful.
> Reader 01: TDA8003 00 00
> Waiting for card insertion       : Command successful.
> Testing 
> SCardConnect             : Command successful.
> Select file:  00 A4 00 
> 00 02 3F 00
> Testing SCardTransmit            : Command successful.
>  
> card response: 6B 00
> Testing SCardControl             : Transaction 
> failed. (don't panic)
> Testing SCardGetAttrib           : Transaction 
> failed. (don't panic)
> Testing SCardGetAttrib           : Transaction 
> failed. (don't panic)
> Testing SCardSetAttrib           : Transaction 
> failed. (don't panic)
> Testing SCardStatus              : Command 
> successful.
> Current Reader Name              : TDA8003 00 00
> Current 
> Reader State             : 0x0034
> Current Reader Protocol          : 
> T=0
> Current Reader ATR Size          : 21 bytes
> Current Reader ATR 
> Value         : 3B 9E 95 80 1F C3 80 31 E0 73 FE 21 1B 66
> D0 00 11 10 
> 20 00 26
> Press enter:
> Testing SCardReconnect           : Command 
> successful.
> Testing SCardDisconnect          : Command successful.
> Testing SCardReleaseContext      : Command successful.
>
> PC/SC Test 
> Completed Successfully !
> -------------------------------------------------------------------------------
> I have a GSM SIM CARD in the reader, and I try to use a "SIM explorer 
> v3.0"
> program from http://ludovic.rousseau.free.fr/softwares/ to  dump 
> the phone book
> of a GSM SIM card.
>
> What could be the problem ?
>
> The 
> output of SIM.pl program is the following:
> -------------------------------------------------------------------------------
> ./SIM.pl -d -D
> No reader given: using TDA8003 00 00
> ATR: 3B 9E 95 80 1F 
> C3 80 31 E0 73 FE 21 1B 66 D0 00 11 10 20 00 26
> => A0 A4 00 00 02 3F 00
> <= 9F 1A
> SW: 9F 1A (Error not defined by ISO 7816)
> => A0 A4 00 00 02 7F 
> 10
> <= 9F 1A
> SW: 9F 1A (Error not defined by ISO 7816)
> => A0 A4 00 00 02 
> 6F 3A
> <= 9F 0F
> SW: 9F 0F (Error not defined by ISO 7816)
> => A0 C0 00 00 
> 0F
> <= 00 00 16 A8 6F 3A 04 00 11 00 22 01 02 01 1D 90 00
> SW: 90 00 
> (Normal processing.)
> Enter PIN code: 
> => A0 20 00 01 08 31 35 34 32 FF 
> FF FF FF 
> <= 90 00
> SW: 90 00 (Normal processing.)
> => A0 B2 01 04 1D
> <= 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> FF FF FF FF FF 90 00
> SW: 90 00 (Normal processing.)
> FF FF FF FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
> 01: 
> => A0 B2 02 04 1D
> <= FF FF FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> 90 00
> SW: 90 00 (Normal processing.)
> FF FF FF FF FF FF FF FF FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
> 02: 
> => A0 B2 03 04 1D
> <= FF FF FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> 90 00
> SW: 90 00 (Normal processing.)
> FF FF FF FF FF FF FF FF FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
>      .................................
>      .. from 03: to 198: is equal ....
>      
> .................................
> 199: 
> => A0 B2 C8 04 1D
> <= FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> FF FF 90 00
> SW: 90 00 (Normal processing.)
> FF FF FF FF FF FF FF FF FF 
> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
> 200: 
> => A0 B2 C9 04 1D
> <= 94 02
> SW: 94 
> 02 (Error not defined by ISO 7816)
> Read Record: ERROR: expected 90 00 
> and got 94 02
> root@(none):~# 
>   

I think, it just a bug in SIM Explorer v3.0. The program should read
until record number 0xC8 only (not 0xC9). Counted form:

File size    : 0x16A8
Record size  : 0x1D
Record number: 0x16A8 / 0x1D = 0xC8 (200 records)


>
> ----Messaggio originale----
> Da: ludovic.
> [EMAIL PROTECTED]
> Data: 21-giu-2006 1.31 PM
> A: "antonello.
> [EMAIL PROTECTED]"<[EMAIL PROTECTED]>, "MUSCLE"
> <muscle@lists.musclecard.com>
> Ogg: Re: [Muscle] TDA8003 in embedded 
> system
>
> On 21/06/06, [EMAIL PROTECTED]
> <antonello.
> [EMAIL PROTECTED]> wrote:
>   
>> Hi all,
>>     
>
> Hello,
>
>   
>> I have a board based 
>>     
> on Intel XScale IXP425 processor.
>   
>> On the
>> board is present a Philips 
>>     
> TDA8003 I2C bus Sim card interface.
>   
>> I am
>> able to send command (like 
>>     
> START,STOP, RESET, WARM ecc) to SIM via I2C
>   
>> and read/write data 
>>     
> from/to SIM via UART1 (in my board sim i/o is
>   
>> connect to UART1).
>>
>>
>>     
> I would like to write a PC/SC Driver.
>   
>> I see on
>> MUSCLE web site a 
>>     
> "PC/SC Driver Developers Kit" and
>   
>> "CT-API Driver
>> Skeleton", but I 
>>     
> am a confused!
>   
>> Where I start from ?
>>     
>
> You can start from the "PC/SC 
> Driver Developers Kit" but it describes
> the v2.0 of the ifd handler 
> API. You can also directly start from the
> API 3.0 page [1].
>
>   
>> Does 
>>     
> exist a
>   
>> driver for a hardware like mine that a can modified?
>>     
>
> No 
> idea.
>
> Bye,
>
> [1] http://pcsclite.alioth.debian.org/ifdhandler-3/
>
>   
_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to