Hi,

if you're interested in the JCWDE Card Terminal yet published in this 
mail-list, please find attached an bug-fix update and a sample code that 
use one of the Sun provided sample applet.

Regards,
Sylvain.




Hi George,

first i find a bug in the internalSendAPDU method of the JCRECardTerminal 
class (a case 4 command should now works fine, btw the implementation 
expects 5 bytes for an outgoing command (cla, ins, P1, P2, Le), does it 
suppose to receive 6 bytes with a Lc parameter set to 00h ??...)

i never use waitForCard, i don't like such modal behavior, instead i prefer 
to use some CTListener, however, i success in requesting a SmartCard 
instance with an ANYCARD request.

in the attached sample, i use an other way: the Card Terminal Registry is 
scanned to find the JCWDE card terminal and then a SlotChannel instance; 
once obtained the code plays with the Wallet applet that comes with the 
samples of the JCWDE 2.11

to run the demo, you must first launch the JCWDE and then the OCF-based demo.

(be sure to have all needed packages in your classpath, the applet quits 
w/o msg if the OCF can't start).

Sylvain.


At 19:37 06/08/00 -0400, George Lawton wrote:
>Sylvain,
>I tried this weekend to use the card terminal and sample card service you
>posted to this forum for Sun's jcwde.  I have been unable to get it to work.
>I cannot get a SmartCard using SmartCard.waitForCard, even with
>CardRequest.ANYCARD specified.  When I construct a SmartCard, I get an
>"illegal SlotChannel" message when I try to access data from the card.  Do
>you have a sample with main entry point that I could see?  If not, may I
>send you the class I wrote for comment?  I'd appreciate any help you can
>provide.
>
>Thanks,
>George W. Lawton
>
>
>----- Original Message -----
>From: "Sylvain Ferey" <[EMAIL PROTECTED]>
>To: "Eric Nellen" <[EMAIL PROTECTED]>; "Lt S.C. Cayouette"
><[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Wednesday, July 12, 2000 7:18 PM
>Subject: RE: [OCF] OCF and JCWDE
>
>
> > Eric, Steve,
> >
> > i implemented a Card Service for OCF and published it in this mailing list
> > a few time ago, find it attached.
> >
> > you have to edit the CardService registered by the JCWDECardServiceFactory
> > class and add this class to the OpenCard.services variable and of cause
>add
> > the JCRECardTerminalFactory to the OpenCard.terminals variable.
> >
> > Sylvain.
> >
> >
> > At 06:50 12/07/00 -0700, you wrote:
> > >Steve,
> > >
> > >We have not implemented an OCF Card Service for the JCWDE yet.
> > >
> > >Kind regards,
> > >
> > >Eric
> > >
> > >.............................................
> > >Eric Nellen
> > >Staff Engineer, Java Card Engineering Group, Sun Microsystems
> > >e-mail:  [EMAIL PROTECTED]
> > >tel:  408 517.5465
> > >fax:  408 517.5460
> > >
> > >
> > >} -----Original Message-----
> > >} From: Lt S.C. Cayouette [mailto:[EMAIL PROTECTED]]
> > >} Sent: Tuesday, July 11, 2000 7:55 PM
> > >} To: [EMAIL PROTECTED]
> > >} Subject: [OCF] OCF and JCWDE
> > >}
> > >}
> > >} Hi, I am new to the OCF world and I would like some advice to get
> > >} started using OCF with JCWDE as I don't have a card reader at
> > >} home. I am used to the APDUTOOL but I know there must be an
> > >} easier way to do things with OCF.
> > >}
> > >} Thank you for your help; please reply to the mailing list with a copy
>to:
> > >} [EMAIL PROTECTED]
> > >}
> > >} Thanks again,
> > >} Steve
> > >}
> >

demo_jvc.zip

Reply via email to