Hello,
tailorw-ncl wrote:
> I'm trying to develop a general, pure Java terminal,
> but the problem is, according to the support of java
> communication API, I can only use reader of type that
> uses serial port(such as Gemplus GCR410 reader), is
> there any solution that I can use other type or reader,
> such as USB type or the type support PCMCIA interface?
o "Pure-java"
In fact, Java will always call some JNI/C Code at one time.
We call "pure-java", some code that is portable, for example
the GCR410 OCF CardTerminal is pure-java, because, thanks to
the javax.comm API, it is the same code that is running on Linux
platforms, Windows, Solaris, etc. (even JavaStations -JavaOS-).
o "USB"
For USB readers, you need first to have a standard Java USB API,
so that the work of dealing with low-level OS details can be
implemented in a separate provider (like Comm providers for
the javax.comm API).
There is not yet such a standard API, but it's in the pipe..
I found that there is already:
- a Java USB API that runs on Linux and is Open Source (but not
"official"):
http://jusb.sourceforge.net/
- and a JCP (Java Community Process) working group lead by IBM
is officially in charge of defining the USB API for Java:
http://java.sun.com/aboutJava/communityprocess/jsr/jsr_080_usb.html
A draft of specs should have been issued in October (I haven't
checked recently but in the JSR they were referencing the open
source work so I'm wondering if these are not actually the same
guys...)
So, when the JCP working group is issuing the spec, the CardTerminal
implementers will be able to start working on portable drivers
for USB readers...
o "PCMCIA"
For PCMCIA readers, I know of no attempt to define a standard API!
The fact is that this kind of device seems to make sense only
for Windows and Linux platforms so it might not be so important
to have pure-Java (portable) code (?). I have in my basement some
Java code for the Gemplus PCMCIA reader (GPR400) which is calling
C code; but it works only for Windows, not for Linux (it was
contributed by somebody from Sun). If you are interested, I can
send it to you. Now what we usually advice concerning PCMCIA, as
there is no Java API, is to use the PC/SC CardTerminal and a PC/SC
driver. The PC/SC CardTerminal has been ported to Linux by David
and is available on the MUSCLE web site. It's probably the best
solution IMHO.
Hope it helped to clarify...
Cheers,
Christophe.
= Before I refuse to answer your questions, I have a brief statement. =
= -- Ronald Reagan =
--
-------------------------------------------------------------
[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!
-------------------------------------------------------------
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************