Plz help about, Running Wallet sample without CAD

I want to run Wallet sample without (CAD)CardReader

1. I have append follwing in the wallet.scr

a. powerup;

b. select instller applet and id as per given in

UserGuide

c. powerdown;

step a and b i have append at the starting of the file

and step c. at the end

2. started cref

3. Run apduttol wallet.scr in other Dos window

It is giving ouput like

establising connection to localhost to port 9025

and other ASCII commands(APDU commands)

But not asking anything to input like debit/credit?

plz, tell me how to run wallet applet without card

Thanks

Pramod

[666 byte] By [tag_pramod] at [2007-9-26 7:48:18]
# 1
I made tes program for Wallet sample without (CAD)CardReader using OCF.Test process and program source exist in this site. http://myhome.hananet.net/~rhaos/javacard/javacard.html
rhaos at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
Hi Park HeeJin You have done a good work ! Its really appriciatable !Cheers
sasivarnan at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
pramod! i too have the same probs what u had .....could u plz help me with that?thx,
naga_sri at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4

The Sun kit runs without a card but simulates a card with the powerup;powerdown; commands.

There isn't a gui or prompt to send apdu commands to the card, that's purpose of appending the apdu commands for your applet in the script file.

With JC 2.2 you use OCF with the reference implementation if you want a gui.

DurangoVa at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5

I am running the sample wallet program.

through scriptgen i got wallet.scr file

i added two line at top of the wallet.scr file

powerup;

// Select the installer applet

0x00 0xA4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x0c 0x06 0x7F;

I got this(0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x0c 0x06) from wallet.opt file i.e. wallet applet id

i appended powerdown;

In one command window i am starting cref

c:\wallet>cref -o wallet.out

another window i am executing apdutool

c:\wallet\javacard>apdutool wallet.scr

Java Card 2.2 ApduTool (version 0.20)

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

Opening connection to localhost on port 9025.

Connected.

Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00

Some ASCII text like CLA: .. SW:

cref closed automatically.

i don't know what is happening.

But not asking anything to input like debit/credit?

plz, tell me how to run wallet applet without card

Subhashini

SubhashiniK at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 6

I am running the sample wallet program.

through scriptgen i got wallet.scr file

i added two line at top of the wallet.scr file

powerup;

// Select the installer applet

0x00 0xA4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x0c 0x06 0x7F;

I got this(0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x0c 0x06) from wallet.opt file i.e. wallet applet id

i appended powerdown;

In one command window i am starting cref

c:\wallet>cref -o wallet.out

another window i am executing apdutool

c:\wallet\javacard>apdutool wallet.scr

Java Card 2.2 ApduTool (version 0.20)

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

Opening connection to localhost on port 9025.

Connected.

Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00

Some ASCII text like CLA: .. SW:

cref closed automatically.

i don't know what is happening.

But not asking anything to input like debit/credit?

plz, tell me how to run wallet applet without card

Subhashini

SubhashiniK at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 7

You won't be prompted to input any data. How would it know what to prompt you for ? ! ! ! Who would prompt ? The card or the reader ? ! ! !

You need to read the specifications and programming guide to understand that communcation to the CAD is thru a series of APDU commands. Nowhere does it mention any user prompted data input !

You have to write middleware to do any prompting.

So to send a debit amount you would send an APDU command to the applet.

Look at the programming guide and you'll see how to send APDU commands. Look at the various .scr files provided in the samples to see how APDU commands are sent.

DurangoVa at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 8
hi .,hi what the URL u have given in Forums is not opening ..,can u pls provide the wallet example execution procedure wat u have done...Iam thankful to you..,Really iam working on this example form 3 days...pls anu one help rehgaridng this.........
rajuvishnu at 2007-7-1 17:58:18 > top of Java-index,Java Mobility Forums,Consumer and Commerce...