Help!The problem of RATS(Request Answer To Select) on Gemplus Java Card

Hi,

I am developping Java applets on GemCombiXpresso R4(Gemplus).

Before downloading applets , these steps shuold be passed first:

1.Request;

2.Anticollision;

3.Select;

4.RATS;

....

The reference manual told me to send RATS to switch the card to Java Card OS,because this card also has other modes.

When I sent the command, the response is not the expected one.Instead it is "60 01 03 62".

I think if I don't pass this step,I won't download anything to the card.

Any comment is always appreciated!

Thanks!

[586 byte] By [Bobby@SHa] at [2007-11-26 22:02:36]
# 1
Could you specify precisely what you send to card? (in hex)
alToSa at 2007-7-10 10:43:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

Thank you!

According to the manual reference,the RATS consists of :

E0 Parameter CRC1_A CRC2_A

Parameter is the parameter byte that codes the frame size for PCD integer (FSDI) and

card identifier (CID).

CRC1_A is cyclic redundancy check byte 1 for type A cards

CRC2_A is cyclic redundancy check byte 2 for type A cards

So I sent " E0 80 31 73 ".

"31 73" is calculated according to the algorithm in ISO 14443.

Bobby@SHa at 2007-7-10 10:43:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
I send RATS after the three steps (REQ,ANT,SEL) are passed successfully!
Bobby@SHa at 2007-7-10 10:43:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...