Hello,

Wei Fang wrote:
> 
> Hello,
> 
> I have a JavaCard and an OCF client.  I would like to use a PS/SC USB
> reader for the card.  I am aware that there is OCF-PSCS translation
> layer in OCF 1.2 by IBM.  Can anyone tell me the exact the syntax for
> a USB reader in the opencard.properties?

If you are using the PC/SC CardTerminal, there is only one line
to put in your properties file: (on one line)

OpenCard.terminals =
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory

which indicates to connect to the PC/SC Resource Manager. This
last one will in turn manage your readers, drivers, etc. The fact
that one of the reader is USB is managed at the PC/SC driver's level
and OCF is actually unware of that.

Also it might be possible to write a CardTerminal that does JNI
(Java -> C) to use USB services of the OS. The problem is that
there is no standard Java API (to my knowledge) for using USB,
such as javax.comm for serial ports, and so you would probably end-up
porting your driver for Windows, Linux (2.4 USB-aware kernel), and
MacOS, etc.

Hope it'll help.

Cheers,
Christophe.

 = "The operation is relatively safe, the scientists said. It has =
 = been tried on about 30 dogs. Five of them are alive and well." =
 =           -- (Washington Post)                                 =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to