Page 1 of 1

Change the Card ATR and Set T=0 or T=1

Posted: Sat Dec 05, 2015 10:56 am
by amrsalah
Hi,

How I can set and code the ATR value and the communication protocol T=1 or T=0 within the applet code.

Thanks!

Re: Change the Card ATR and Set T=0 or T=1

Posted: Sun Dec 06, 2015 11:18 pm
by UNKNwYSHSA
You can not set ATR value from applet.
You can only change ATR history bytes use GPSystem.setATRHistBytes() and you must has privilege to call this method;
I want to ask you, the ATR is the commnication parameters of card, it usually have no relation with applet execution, why you have this requirement?

Re: Change the Card ATR and Set T=0 or T=1

Posted: Thu Dec 10, 2015 6:09 pm
by amrsalah
Hi,

Thanks for your kind reply,
The reason that I want to change the ATR, because I have some program to send APDUs which have some difficulty to start up when the ATR is too short ex. 3B 80 80 01 01 and I have the same problem before with other card simulators and changing the ATR solve the issue.

can you give an example to set the ATR history? also it is possible to change the simulator or the card from T=1 to T=0?

Thanks!