OpenSCDP


About

Services

Download

Links

Contact

Home


tscons.de


Patching the OpenCard Framework to support Memory Cards

You will need to change the CardID.java file located in components/base-core/src/opencard/core/terminal/ and compile it into a .class file. With this class file you will need to update the base-core.jar file located in lib/.

  • Make a backup of CardID.java before you start editing

  • Locate the constructor somewhere near line 100

  • Change the routine by adding

if ((atr[0] == 0x3B) || (atr[0] == 0x3F)) {

before

if ((atr[1] & 0x0f) > 0) {

and add a closing

}

at the end. This will ensure, that only for asynchronous cards the ATR will be parsed.

  • Compile with javac CardID.java

  • Change to directory lib/

  • Update the jar file with jar uvf base-core -C ../components/base-core/src opencard/core/terminal/CardID.java