The TransitDemo
or TransitDemo.bat
script automatically starts and stops cref
when needed to simulate interaction sessions with the POS terminal and the turnstile transit terminal.
\bin
directory.cref -o transitCard
\samples\reference_apps\Transit\Transit\applet
directory.ant all
In this sample's applet
directory, the ant
all
command generates the APDU script and downloads the CAP file.
cref
Command Prompt window, restart the RI by using the following command:
cref -i transitCard -o transitCard
Starting the RI with the -i
transitCard
-o
transitCard
options and filenames causes the RI to use the contents of the transitCard
file to initialize the EEPROM and to save the EEPROM contents to a file named transitCard
. See Using the Reference Implementation for more information about using cref
and its command line options.
\samples\reference_apps\Transit\Transit\client
directory.ant run1
In this sample's client
directory, the ant
run1 command compiles and builds the client.jar
and generates the actual_output1.txt
file.
actual_output1.txt
file are the same as the contents of the TransitClient_1.expected.output
file.
actual_output1.txt
file varies from the TransitClient_1.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40
cref
Command Prompt window, restart the RI by using the following command:
cref -i transitCard -o transitCard
ant run2
In this sample's client
directory, the ant
run2 command compiles and builds the client.jar
and generates the actual_output2.txt
file.
actual_output2.txt
file are the same as the contents of the TransitClient_2.expected.output
file.
actual_output2.txt
file varies from the TransitClient_2.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40
cref
Command Prompt window, restart the RI by using the following command:
cref -i transitCard -o transitCard
ant run3
In this sample's client
directory, the ant
run3 command compiles and builds the client.jar
and generates the actual_output3.txt
file.
actual_output3.txt
file are the same as the contents of the TransitClient_3.expected.output
file.
actual_output3.txt
file varies from the TransitClient_3.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40
cref
Command Prompt window, restart the RI by using the following command:
cref -i transitCard -o transitCard
ant run4
In this sample's client
directory, the ant
run4 command compiles and builds the client.jar
and generates the actual_output4.txt
file
actual_output4.txt
file are the same as the contents of the TransitClient_4.expected.output
file.
actual_output4.txt
file varies from the TransitClient_4.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40